Skip to content

Missing 'by' in CoffeeScript keywords #298

@Anteru

Description

@Anteru

(Original issue 519 created by None on 2010-08-04T21:29:42+00:00)

'''by''' is missing in the lexer for !CoffeeScript and '''Error''' and '''this''' are duplicated. See this diff:

{{{
--- web.py.original 2010-08-04 20:26:58.000000000 +0200
+++ web.py 2010-08-04 23:33:36.000000000 +0200
@@ -1598,14 +1598,14 @@
(r'[{(\[;,]', Punctuation, 'slashstartsregex'),
(r'[})\].]', Punctuation),
(r'(for|in|of|while|break|return|continue|switch|when|then|if|else|'

  •         r'throw|try|catch|finally|new|delete|typeof|instanceof|super|'
    
  •         r'by|throw|try|catch|finally|new|delete|typeof|instanceof|super|'
            r'extends|this)\\b', Keyword, 'slashstartsregex'),
           (r'(true|false|yes|no|on|off|null|NaN|Infinity|undefined)\\b',
            Keyword.Constant),
           (r'(Array|Boolean|Date|Error|Function|Math|netscape|'
            r'Number|Object|Packages|RegExp|String|sun|decodeURI|'
            r'decodeURIComponent|encodeURI|encodeURIComponent|'
    
  •         r'Error|eval|isFinite|isNaN|parseFloat|parseInt|document|this|'
    
  •         r'eval|isFinite|isNaN|parseFloat|parseInt|document|'
            r'window)\\b', Name.Builtin),
           (r'[$a-zA-Z_][a-zA-Z0-9_\\.:]*:\\s', Name.Variable,
            'slashstartsregex'),
    

}}}

Reported by guest

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-majorseverity: majorT-bugtype: a bugX-importedimported from Bitbucket

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions