Permalink
Commits on Apr 9, 2018
  1. Merge pull request #62 from ts4z/master

    wasamasa committed Apr 9, 2018
    fill while in a comment should behave as in text modes
Commits on Apr 4, 2018
  1. fill while in a comment should behave as in text modes

    ts4z committed Apr 4, 2018
    This fixes a bug in fill-paragraph that made adaptive fill not work
    while in a comment (probably the only time it matters in yaml-mode).
    
    This change does what lisp-mode does: first, try fill-comment-paragraph.
    If fill-comment-paragraph does the fill, great; we're in a comment, and
    the right thing happens.  If it returns nil, it can't do the fill, and
    we can fall back to the previous method.
    
    Without this change, a paragraph break inside a comment, or other things
    that adaptive fill would generally detect, are not respected.
Commits on Feb 12, 2018
  1. Use block literal font-lock first

    wasamasa committed Feb 12, 2018
    Later font-lock rules cannot override earlier ones unless explicitly
    permitted, so if a key-value pair inside a block literal is
    highlighted first, the block literal highlighting will apply to
    everything outside it only.  The easy way out here is to apply the
    block literal highlighting first because nothing else should be
    highlighted inside block literals.
  2. Formatting fixes

    wasamasa committed Feb 12, 2018
  3. Merge pull request #59 from Kaali/master

    wasamasa committed Feb 12, 2018
    Support non-whitespace preceded apostrophe
Commits on Feb 8, 2018
  1. Support escaped quote in a single quoted string

    Väinö Järvelä
    Väinö Järvelä committed Feb 8, 2018
    e.g. 'key''s'
  2. Support double quote in implicit keys

    Väinö Järvelä
    Väinö Järvelä committed Feb 8, 2018
    This fixes keys such as:
    
      key"s: value
    
    which is valid YAML.
  3. Support non-whitespace preceded apostrophe

    Väinö Järvelä Väinö Järvelä
    Väinö Järvelä authored and Väinö Järvelä committed Feb 7, 2018
    The previous version handles apostrophe as a quote if it was preceded
    by a whitespace. This version checks the syntax of the preceding
    character, if it's part of a word then it's handled as an apostrophe,
    otherwise as a quote.
    
    Fixes previously broken situations with JSON style lists.
Commits on Feb 5, 2018
  1. Merge pull request #57 from Kaali/master

    wasamasa committed Feb 5, 2018
    Support for apostrophe in words
Commits on Feb 4, 2018
  1. Support for apostrophe in words

    Väinö Järvelä
    Väinö Järvelä committed Feb 4, 2018
    If a quote is written in a word it is handled as a word instead of
    starting a string. This fixes the following YAML syntax highlighting:
    
      server's:
        - here: syntax is not string
        - this: 'is a string'
    
    Previously the first apostrophe/quote started a string, which meant
    that the file is highlighted as a string until the next quote is met.
    
    The single quote string detection now requires that the previous character
    is a whitespace, which means that:
    
      this:'is detected incorrectly'
    
    without the space the above does not detect a string.
Commits on Jul 27, 2017
  1. Merge pull request #54 from jfrederickson/whitespace-document-separator

    wasamasa committed Jul 27, 2017
    Don't consider a line a document delimiter if it has leading whitespace
  2. Don't consider a line a document delimiter if it has leading whitespace

    Jonathan Frederickson
    Jonathan Frederickson committed Jul 27, 2017
    The YAML spec says this:
    
    >This line must start with a document separator: “---” followed by a
    >line break or a sequence of space characters.
    
    http://yaml.org/spec/1.0/#id2561718
    
    If I'm reading the spec correctly, this seems to mean that a document
    separator must appear at the start of the line. The current behavior
    causes yaml-mode to interpret three dashes as a document separator even
    inside an indented block literal. (#53)
Commits on Apr 6, 2017
  1. Merge pull request #47 from Wilfred/references_as_punctuation

    wasamasa committed Apr 6, 2017
    Treat alias nodes as punctuation
  2. Treat alias nodes as punctuation

    Wilfred committed Apr 6, 2017
    Previously, Emacs did not understand that &foo and *foo related to the
    same symbol, so tools like highlight-symbol-mode did not work.
    
    Relevant section of the YAML spec: http://yaml.org/spec/1.2/spec.html#id2786196
Commits on Feb 13, 2017
  1. Merge pull request #46 from pkulev/fix-typo

    wasamasa committed Feb 13, 2017
    Fix typo in yaml-mode-version docstring
Commits on Nov 5, 2016
  1. Merge pull request #45 from dunn/master

    wasamasa committed Nov 5, 2016
    update yaml-mode-version
  2. update yaml-mode-version

    dunn committed Nov 5, 2016
Commits on Nov 4, 2016
  1. Bumping version to 0.0.13

    wasamasa committed Nov 4, 2016
Commits on Sep 2, 2016
  1. Merge pull request #43 from scop/raml

    wasamasa committed Sep 2, 2016
    Add *.raml to auto-mode-alist association
  2. Merge pull request #42 from scop/spelling

    wasamasa committed Sep 2, 2016
    Spelling fix
  3. Spelling fix

    scop committed Sep 2, 2016
Commits on May 28, 2016
Commits on Apr 26, 2016
Commits on Apr 25, 2016
Commits on Feb 20, 2016
  1. Remove unnecessary refontification

    wasamasa committed Feb 20, 2016
    Closes #37
Commits on Feb 17, 2016
  1. Unhighlight foo#bar tokens

    wasamasa committed Feb 17, 2016
    Closes #26
  2. Backquote FTW

    wasamasa committed Feb 17, 2016