Commits

Anonymous committed 90e78e9

MiniD lexer update.

  • Participants
  • Parent commits 9456901
  • Branches trunk

Comments (0)

Files changed (1)

File pygments/lexers/agile.py

             (r'/(\\\n)?[*](.|\n)*?[*](\\\n)?/', Comment),
             (r'/\+', Comment, 'nestedcomment'),
             # Keywords
-            (r'(as|break|case|class|catch|continue|coroutine|default'
+            (r'(as|assert|break|case|catch|continue|coroutine|default'
              r'|do|else|finally|for|foreach|function|global|namespace'
-             r'|if|import|in|is|local|module|return|super|switch'
+             r'|if|import|in|is|local|module|object|return|super|switch'
              r'|this|throw|try|vararg|while|with|yield)\b', Keyword),
             (r'(false|true|null)\b', Keyword.Constant),
             # FloatLiteral
             ),
             # StringLiteral
             # -- WysiwygString
-            (r'@"[^"]*"', String),
+            (r'@"(""|.)*"', String),
             # -- AlternateWysiwygString
-            (r'`[^`]*`', String),
+            (r'`(``|.)*`', String),
             # -- DoubleQuotedString
             (r'"(\\\\|\\"|[^"])*"', String),
             # Tokens
             (
-             r'(~=|\^=|%=|\*=|==|!=|>>>=|>>>|>>=|>>|>=|<=>|\?='
+             r'(~=|\^=|%=|\*=|==|!=|>>>=|>>>|>>=|>>|>=|<=>|\?=|-\>'
              r'|<<=|<<|<=|\+\+|\+=|--|-=|\|\||\|=|&&|&=|\.\.|/=)'
-             r'|[-/.&|\+<>!()\[\]{}?,;:=*%^~#]', Punctuation
+             r'|[-/.&$@|\+<>!()\[\]{}?,;:=*%^~#\\]', Punctuation
             ),
             # Identifier
-            (r'[a-zA-Z_](\w|::)*', Name),
+            (r'[a-zA-Z_]\w*', Name),
         ],
         'nestedcomment': [
             (r'[^+/]+', Comment),