Skip to content
Commits on Apr 20, 2015
  1. Merge pull request #186 from Qix-/patch-1

    reduced possible exponential prefixes to just 'e'
    committed Apr 20, 2015
  2. Merge pull request #185 from tur-nr/yield-syntax

    adds `yield` keyword
    committed Apr 20, 2015
Commits on Apr 7, 2015
  1. @Qix-

    reduced possible exponential prefixes to just 'e'

    Coffeescript exponential numbers can only be prefixed with a lower-case `e`; upper case `E` does not work:
    
    > [stdin]:8:67: error: exponential notation in '9E50' must be indicated with a lowercase 'e'
    Qix- committed Apr 7, 2015
Commits on Feb 26, 2015
  1. @tur-nr

    adds `yield` keyword

    tur-nr committed Feb 26, 2015
Commits on Oct 10, 2014
  1. Update required coffeelint version

    For when --reporter was added
    committed Oct 10, 2014
  2. Do a v003

    committed Oct 10, 2014
  3. Merge pull request #167 from dhruvasagar/master

    Added suffixesadd to facilitate gf & :find family
    committed Oct 10, 2014
  4. Merge pull request #166 from meonkeys/patch-1

    README: adapt to Vundle interface change
    committed Oct 10, 2014
  5. Merge pull request #169 from tpope/buffer-local-commands

    Make commands buffer local
    committed Oct 10, 2014
  6. Merge pull request #171 from jcmuller/fix-reporter-option

    Update coffelint csv reporter argument
    committed Oct 10, 2014
Commits on Jun 19, 2014
  1. @jcmuller
Commits on Jun 14, 2014
  1. @tpope

    Make commands buffer local

    tpope committed Jun 13, 2014
Commits on Apr 29, 2014
  1. @dhruvasagar
Commits on Apr 17, 2014
  1. @meonkeys
Commits on Dec 18, 2013
  1. Don't update makeprg on BufWritePost

    It's already being ran on BufWritePre, so don't do it twice
    committed Dec 18, 2013
Commits on Dec 9, 2013
  1. @Xe0n0

    update makeprg before write buf, since we suggest autobuild after wri…

    …te buf with BufWritePost
    Xe0n0 committed Dec 9, 2013
Commits on Oct 29, 2013
Commits on Oct 28, 2013
  1. Highlight Infinity and NaN as numbers (#148)

    Mick Koch committed Oct 28, 2013
  2. Merge pull request #150 from hinrik/dont_change_isident

    Don't change 'isident'
    committed Oct 28, 2013
Commits on Oct 26, 2013
  1. @hinrik

    Don't change 'isident'

    hinrik committed Oct 26, 2013
Commits on Sep 30, 2013
  1. Fix passing options to coffee with :make (#145)

    This bug was introduced by 0e38ef9 so that
    `:make | cwindow` worked, but it broke passing in options because coffee doesn't
    accept options after a filename.
    
    Putting the $* back before the filename allows passing options but it breaks
    using `:make OPTIONS | cwindow` again because vim expands that as
    
        coffee OPTIONS | cwindow FILE.coffee
    
    So I updated the readme to recommend using an autocmd instead of a pipe to open
    the quickfix window. This isn't perfect because it seems to be impossible to
    switch to the quickfix window within an autocmd after opening it, but I'm not
    sure of any other solution.
    committed Sep 29, 2013
Commits on Sep 21, 2013
  1. Add requirements section

    committed Sep 9, 2013
  2. Fix compatibility for older vims without shiftwidth()

    shiftwidth() was added in vim 7.3.694
    committed Sep 21, 2013
Commits on Sep 8, 2013
  1. Use a region for regex character classes

    This should fix #101 and also fixes heregexes breaking with [///]
    committed Sep 8, 2013
Commits on Sep 7, 2013
Commits on Sep 3, 2013
  1. Rewrite indent/coffee.vim

     - Be much more conservative with non-blank lines, so now running = on an entire
       file hopefully works as expected. Running gg=G on the coffee sources now
       produces this diff:
    
           diff --git a/src/grammar.coffee b/src/grammar.coffee
           index 0cd5b4d..69d4f8b 100644
           --- a/src/grammar.coffee
           +++ b/src/grammar.coffee
           @@ -219,7 +219,7 @@ grammar =
                o 'ParamVar = Expression',                  -> new Param $1, $3
              ]
    
           - # Function Parameters
           +  # Function Parameters
              ParamVar: [
                o 'Identifier'
                o 'ThisProperty'
           diff --git a/src/helpers.coffee b/src/helpers.coffee
           index ec5b7a9..8df76b0 100644
           --- a/src/helpers.coffee
           +++ b/src/helpers.coffee
           @@ -99,23 +99,23 @@ buildLocationData = (first, last) ->
            # object is an AST node, updates that object's locationData.
            # The object is returned either way.
            exports.addLocationDataFn = (first, last) ->
           -    (obj) ->
           -      if ((typeof obj) is 'object') and (!!obj['updateLocationDataIfMissing'])
           -        obj.updateLocationDataIfMissing buildLocationData(first, last)
           +  (obj) ->
           +    if ((typeof obj) is 'object') and (!!obj['updateLocationDataIfMissing'])
           +      obj.updateLocationDataIfMissing buildLocationData(first, last)
    
                  return obj
    
            # Convert jison location data to a string.
            # `obj` can be a token, or a locationData.
            exports.locationDataToString = (obj) ->
           -    if ("2" of obj) and ("first_line" of obj[2]) then locationData = obj[2]
           -    else if "first_line" of obj then locationData = obj
           +  if ("2" of obj) and ("first_line" of obj[2]) then locationData = obj[2]
           +  else if "first_line" of obj then locationData = obj
    
           -    if locationData
           -      "#{locationData.first_line + 1}:#{locationData.first_column + 1}-" +
           -      "#{locationData.last_line + 1}:#{locationData.last_column + 1}"
           -    else
           -      "No location data"
           +  if locationData
           +    "#{locationData.first_line + 1}:#{locationData.first_column + 1}-" +
           +    "#{locationData.last_line + 1}:#{locationData.last_column + 1}"
           +  else
           +    "No location data"
    
           # A `.coffee.md` compatible version of `basename`, that returns the file sans-extension.
           exports.baseFileName = (file, stripExt = no, useWinPathSep = no) ->
           diff --git a/src/lexer.coffee b/src/lexer.coffee
           index 6a992b5..8e69720 100644
           --- a/src/lexer.coffee
           +++ b/src/lexer.coffee
           @@ -45,9 +45,9 @@ exports.Lexer = class Lexer
                @tokens     = []             # Stream of parsed tokens in the form `['TYPE', value, location data]`.
    
                @chunkLine =
           -        opts.line or 0         # The start line for the current @chunk.
           +      opts.line or 0         # The start line for the current @chunk.
                @chunkColumn =
           -        opts.column or 0       # The start column of the current @chunk.
           +      opts.column or 0       # The start column of the current @chunk.
                code = @clean code         # The stripped, cleaned original source code.
    
                # At every position, run through this list of attempted matches,
           @@ -84,8 +84,8 @@ exports.Lexer = class Lexer
                code = code.slice(1) if code.charCodeAt(0) is BOM
                code = code.replace(/\r/g, '').replace TRAILING_SPACES, ''
                if WHITESPACE.test code
           -        code = "\n#{code}"
           -        @chunkLine--
           +      code = "\n#{code}"
           +      @chunkLine--
                code = invertLiterate code if @literate
                code
    
           diff --git a/src/rewriter.coffee b/src/rewriter.coffee
           index dc598f1..a702ae1 100644
           --- a/src/rewriter.coffee
           +++ b/src/rewriter.coffee
           @@ -7,9 +7,9 @@
    
            # Create a generated token: one that exists due to a use of implicit syntax.
            generate = (tag, value) ->
           -    tok = [tag, value]
           -    tok.generated = yes
           -    tok
           +  tok = [tag, value]
           +  tok.generated = yes
           +  tok
    
            # The **Rewriter** class is used by the [Lexer](lexer.html), directly against
            # its internal array of tokens.
           @@ -341,11 +341,11 @@ class exports.Rewriter
                  return 1 if     token[2]
                  return 1 unless token.generated or token.explicit
                  if token[0] is '{' and nextLocation=tokens[i + 1]?[2]
           -          {first_line: line, first_column: column} = nextLocation
           +        {first_line: line, first_column: column} = nextLocation
                  else if prevLocation = tokens[i - 1]?[2]
           -          {last_line: line, last_column: column} = prevLocation
           +        {last_line: line, last_column: column} = prevLocation
                  else
           -          line = column = 0
           +        line = column = 0
                  token[2] =
                    first_line:   line
                    first_column: column
    
       so only lines with incorrect indentation are changed.
    
     - Optimize SearchCode so it's 16% faster on average
     - Optimize GetTrimmedLine so it's 4% faster on average
     - Use shiftwidth()
     - Fix object keys like class: being indented after
     - Fix not indenting after lines that end in a regex
     - Allow empty function bodies (don't force indenting after -> on non-blank
       lines)
     - Don't force indenting of a when (for nested switch blocks)
     - Don't force indenting to match a comment
     - Don't force indenting after a block-breaking keyword
     - Don't force indenting on non-blank continuations
     - Don't indent when a continuation is preceded by a closing bracket
     - Split up bracket and keyword pair searching so the keyword case is more
       flexible
     - Search for a farthest keyword pair match so that indentation is forced to be
       correct but not aligned to any particular match
     - Don't indent when inside a multiline string
     - Don't indent if the current line begins with then
     - Don't be fooled by a then inside brackets
     - Add a final check if the current line is inside brackets
     - More?
    committed Aug 31, 2013
Commits on Aug 31, 2013
  1. Implement custom autocmds

    committed Aug 31, 2013
  2. Use q-bang

    committed Aug 31, 2013
  3. Sleep so the message is shown

    committed Aug 31, 2013
  4. Fix #130

    Don't allow embedded javascript to match past the closing backtick
    committed Aug 30, 2013
  5. Clarify continuation stuff a bit

    Also replace two regex compares with one
    committed Aug 30, 2013
Something went wrong with that request. Please try again.