diff options
author | Sebastian Engel <dev@sebastianengel.eu> | 2022-01-06 18:01:03 +0100 |
---|---|---|
committer | Sebastian Engel <dev@sebastianengel.eu> | 2022-01-06 18:34:29 +0100 |
commit | 0a13c763016a9d63f7d3794cd61a41c8b3645079 (patch) | |
tree | 0b0afee49eac17dcbcac3aed82cf8bc31199b4ad | |
parent | 68c1dce3c425e46363600db730ea7adb4246fbfa (diff) | |
download | pygments-git-0a13c763016a9d63f7d3794cd61a41c8b3645079.tar.gz |
Whitespace token for scala lexer
56 files changed, 3905 insertions, 3895 deletions
diff --git a/pygments/lexers/jvm.py b/pygments/lexers/jvm.py index e4fa27d9..f403e778 100644 --- a/pygments/lexers/jvm.py +++ b/pygments/lexers/jvm.py @@ -220,7 +220,7 @@ class ScalaLexer(RegexLexer): # Includes: 'whitespace': [ - (r'\s+', Text), + (r'\s+', Whitespace), ], 'comments': [ (r'//.*?\n', Comment.Single), @@ -230,12 +230,12 @@ class ScalaLexer(RegexLexer): (r'^#!([^\n]*)$', Comment.Hashbang), ], 'imports': [ - (r'\b(import)(\s+)', bygroups(Keyword, Text), 'import-path'), + (r'\b(import)(\s+)', bygroups(Keyword, Whitespace), 'import-path'), ], 'exports': [ (r'\b(export)(\s+)(given)(\s+)', - bygroups(Keyword, Text, Keyword, Text), 'export-path'), - (r'\b(export)(\s+)', bygroups(Keyword, Text), 'export-path'), + bygroups(Keyword, Whitespace, Keyword, Whitespace), 'export-path'), + (r'\b(export)(\s+)', bygroups(Keyword, Whitespace), 'export-path'), ], 'storage-modifiers': [ (words(storage_modifiers, prefix=r'\b', suffix=r'\b'), Keyword), @@ -252,46 +252,46 @@ class ScalaLexer(RegexLexer): 'using': [ # using is a soft keyword, can only be used in the first position of # a parameter or argument list. - (r'(\()(\s*)(using)(\s)', bygroups(Punctuation, Text, Keyword, Text)), + (r'(\()(\s*)(using)(\s)', bygroups(Punctuation, Whitespace, Keyword, Whitespace)), ], 'declarations': [ (r'\b(def)\b(\s*)%s(%s)?' % (notStartOfComment, anyId), - bygroups(Keyword, Text, Name.Function)), + bygroups(Keyword, Whitespace, Name.Function)), (r'\b(trait)\b(\s*)%s(%s)?' % (notStartOfComment, anyId), - bygroups(Keyword, Text, Name.Class)), + bygroups(Keyword, Whitespace, Name.Class)), (r'\b(?:(case)(\s+))?(class|object|enum)\b(\s*)%s(%s)?' % (notStartOfComment, anyId), - bygroups(Keyword, Text, Keyword, Text, Name.Class)), + bygroups(Keyword, Whitespace, Keyword, Whitespace, Name.Class)), (r'(?<!\.)\b(type)\b(\s*)%s(%s)?' % (notStartOfComment, anyId), - bygroups(Keyword, Text, Name.Class)), + bygroups(Keyword, Whitespace, Name.Class)), (r'\b(val|var)\b', Keyword.Declaration), (r'\b(package)(\s+)(object)\b(\s*)%s(%s)?' % (notStartOfComment, anyId), - bygroups(Keyword, Text, Keyword, Text, Name.Namespace)), - (r'\b(package)(\s+)', bygroups(Keyword, Text), 'package'), + bygroups(Keyword, Whitespace, Keyword, Whitespace, Name.Namespace)), + (r'\b(package)(\s+)', bygroups(Keyword, Whitespace), 'package'), (r'\b(given)\b(\s*)(%s)' % idUpper, - bygroups(Keyword, Text, Name.Class)), + bygroups(Keyword, Whitespace, Name.Class)), (r'\b(given)\b(\s*)(%s)?' % anyId, - bygroups(Keyword, Text, Name)), + bygroups(Keyword, Whitespace, Name)), ], 'inheritance': [ (r'\b(extends|with|derives)\b(\s*)' r'(%s|%s|(?=\([^\)]+=>)|(?=%s)|(?="))?' % (idUpper, backQuotedId, plainid), - bygroups(Keyword, Text, Name.Class)), + bygroups(Keyword, Whitespace, Name.Class)), ], 'extension': [ - (r'\b(extension)(\s+)(?=[\[\(])', bygroups(Keyword, Text)), + (r'\b(extension)(\s+)(?=[\[\(])', bygroups(Keyword, Whitespace)), ], 'end': [ # end is a soft keyword, should only be highlighted in certain cases (r'\b(end)(\s+)(if|while|for|match|new|extension|val|var)\b', - bygroups(Keyword, Text, Keyword)), + bygroups(Keyword, Whitespace, Keyword)), (r'\b(end)(\s+)(%s)%s' % (idUpper, endOfLineMaybeWithComment), - bygroups(Keyword, Text, Name.Class)), + bygroups(Keyword, Whitespace, Name.Class)), (r'\b(end)(\s+)(%s|%s)?%s' % (backQuotedId, plainid, endOfLineMaybeWithComment), - bygroups(Keyword, Text, Name.Namespace)), + bygroups(Keyword, Whitespace, Name.Namespace)), ], 'punctuation': [ (r'[{}()\[\];,.]', Punctuation), @@ -301,7 +301,7 @@ class ScalaLexer(RegexLexer): (words(keywords, prefix=r'\b', suffix=r'\b'), Keyword), ], 'operators': [ - (r'(%s{2,})(\s+)' % opchar, bygroups(Operator, Text)), + (r'(%s{2,})(\s+)' % opchar, bygroups(Operator, Whitespace)), (r'/(?![/*])', Operator), (words(operators), Operator), (r'(?<!%s)(!|&&|\|\|)(?!%s)' % (opchar, opchar), Operator), @@ -421,7 +421,7 @@ class ScalaLexer(RegexLexer): (r'(%s)(\.)' % anyId, bygroups(Name.Namespace, Punctuation)), (r'\.', Punctuation), (anyId, Name), - (r'[^\S\n]+', Text), + (r'[^\S\n]+', Whitespace), ], 'interpolated-string-common': [ (r'[^"$\\]+', String), @@ -454,8 +454,8 @@ class GosuLexer(RegexLexer): (r'^(\s*(?:[a-zA-Z_][\w.\[\]]*\s+)+?)' # modifiers etc. r'([a-zA-Z_]\w*)' # method name r'(\s*)(\()', # signature start - bygroups(using(this), Name.Function, Text, Operator)), - (r'[^\S\n]+', Text), + bygroups(using(this), Name.Function, Whitespace, Operator)), + (r'[^\S\n]+', Whitespace), (r'//.*?\n', Comment.Single), (r'/\*.*?\*/', Comment.Multiline), (r'@[a-zA-Z_][\w.]*', Name.Decorator), @@ -466,15 +466,15 @@ class GosuLexer(RegexLexer): (r'(var|delegate|construct|function|private|internal|protected|' r'public|abstract|override|final|static|extends|transient|' r'implements|represents|readonly)\b', Keyword.Declaration), - (r'(property\s+)(get|set)?', Keyword.Declaration), + (r'(property)(\s+)(get|set)?', bygroups(Keyword.Declaration, Whitespace, Keyword.Declaration)), (r'(boolean|byte|char|double|float|int|long|short|void|block)\b', Keyword.Type), - (r'(package)(\s+)', bygroups(Keyword.Namespace, Text)), + (r'(package)(\s+)', bygroups(Keyword.Namespace, Whitespace)), (r'(true|false|null|NaN|Infinity)\b', Keyword.Constant), (r'(class|interface|enhancement|enum)(\s+)([a-zA-Z_]\w*)', - bygroups(Keyword.Declaration, Text, Name.Class)), + bygroups(Keyword.Declaration, Whitespace, Name.Class)), (r'(uses)(\s+)([\w.]+\*?)', - bygroups(Keyword.Namespace, Text, Name.Namespace)), + bygroups(Keyword.Namespace, Whitespace, Name.Namespace)), (r'"', String, 'string'), (r'(\??[.#])([a-zA-Z_]\w*)', bygroups(Operator, Name.Attribute)), @@ -484,7 +484,7 @@ class GosuLexer(RegexLexer): (r'and|or|not|[\\~^*!%&\[\](){}<>|+=:;,./?-]', Operator), (r'[0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]?', Number.Float), (r'[0-9]+', Number.Integer), - (r'\n', Text) + (r'\n', Whitespace) ], 'templateText': [ (r'(\\<)|(\\\$)', String), @@ -552,8 +552,8 @@ class GroovyLexer(RegexLexer): default('base'), ], 'base': [ - (r'[^\S\n]+', Text), - (r'//.*?\n', Comment.Single), + (r'[^\S\n]+', Whitespace), + (r'(//.*?)(\n)', bygroups(Comment.Single, Whitespace)), (r'/\*.*?\*/', Comment.Multiline), # keywords: go before method names to avoid lexing "throw new XYZ" # as a method signature @@ -568,18 +568,18 @@ class GroovyLexer(RegexLexer): r"|'(?:\\\\|\\[^\\]|[^'\\])*'" # or single-quoted method name r')' r'(\s*)(\()', # signature start - bygroups(using(this), Name.Function, Text, Operator)), + bygroups(using(this), Name.Function, Whitespace, Operator)), (r'@[a-zA-Z_][\w.]*', Name.Decorator), (r'(abstract|const|enum|extends|final|implements|native|private|' r'protected|public|static|strictfp|super|synchronized|throws|' r'transient|volatile)\b', Keyword.Declaration), (r'(def|boolean|byte|char|double|float|int|long|short|void)\b', Keyword.Type), - (r'(package)(\s+)', bygroups(Keyword.Namespace, Text)), + (r'(package)(\s+)', bygroups(Keyword.Namespace, Whitespace)), (r'(true|false|null)\b', Keyword.Constant), - (r'(class|interface)(\s+)', bygroups(Keyword.Declaration, Text), + (r'(class|interface)(\s+)', bygroups(Keyword.Declaration, Whitespace), 'class'), - (r'(import)(\s+)', bygroups(Keyword.Namespace, Text), 'import'), + (r'(import)(\s+)', bygroups(Keyword.Namespace, Whitespace), 'import'), (r'""".*?"""', String.Double), (r"'''.*?'''", String.Single), (r'"(\\\\|\\[^\\]|[^"\\])*"', String.Double), @@ -594,7 +594,7 @@ class GroovyLexer(RegexLexer): (r'[0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]?', Number.Float), (r'0x[0-9a-fA-F]+', Number.Hex), (r'[0-9]+L?', Number.Integer), - (r'\n', Text) + (r'\n', Whitespace) ], 'class': [ (r'[a-zA-Z_]\w*', Name.Class, '#pop') @@ -664,8 +664,8 @@ class IokeLexer(RegexLexer): ], 'root': [ - (r'\n', Text), - (r'\s+', Text), + (r'\n', Whitespace), + (r'\s+', Whitespace), # Comments (r';(.*?)\n', Comment), @@ -683,7 +683,7 @@ class IokeLexer(RegexLexer): # Documentation (r'((?<=fn\()|(?<=fnx\()|(?<=method\()|(?<=macro\()|(?<=lecro\()' r'|(?<=syntax\()|(?<=dmacro\()|(?<=dlecro\()|(?<=dlecrox\()' - r'|(?<=dsyntax\())\s*"', String.Doc, 'documentation'), + r'|(?<=dsyntax\())(\s*)"', String.Doc, 'documentation'), # Text (r'"', String, 'text'), @@ -888,7 +888,8 @@ class ClojureLexer(RegexLexer): (r';.*$', Comment.Single), # whitespaces - usually not relevant - (r'[,\s]+', Text), + (r'[,]', Text), + (r'\s+', Whitespace), # numbers (r'-?\d+\.\d+', Number.Float), diff --git a/tests/examplefiles/clojure/clojure-weird-keywords.clj.output b/tests/examplefiles/clojure/clojure-weird-keywords.clj.output index c413a933..fe8eafed 100644 --- a/tests/examplefiles/clojure/clojure-weird-keywords.clj.output +++ b/tests/examplefiles/clojure/clojure-weird-keywords.clj.output @@ -1,38 +1,38 @@ '; Note, clojure lexer is here (and is a good deal more liberal than the language spec:' Comment.Single -'\n' Text +'\n' Text.Whitespace '; https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/LispReader.java#L62' Comment.Single -'\n\n' Text +'\n\n' Text.Whitespace '(' Punctuation 'defn ' Keyword.Declaration 'valid' Name.Variable -' ' Text +' ' Text.Whitespace '[' Punctuation '#' Operator '^' Operator 'java.lang.reflect.Method' Name.Variable -' ' Text +' ' Text.Whitespace 'meth' Name.Variable ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '[' Punctuation ':keyword' Literal.String.Symbol -' ' Text +' ' Text.Whitespace ':#initial-hash' Literal.String.Symbol -' ' Text +' ' Text.Whitespace ':h#sh-in-middle' Literal.String.Symbol -' ' Text +' ' Text.Whitespace ':hash-at-end#' Literal.String.Symbol -' ' Text +' ' Text.Whitespace '#' Operator 'js' Name.Variable -' ' Text +' ' Text.Whitespace '{' Punctuation ':keyword' Literal.String.Symbol -' ' Text +' ' Text.Whitespace '"value"' Literal.String '}' Punctuation ']' Punctuation ')' Punctuation -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/clojure/escape_semicolon.clj.output b/tests/examplefiles/clojure/escape_semicolon.clj.output index d22d8489..9292d81e 100644 --- a/tests/examplefiles/clojure/escape_semicolon.clj.output +++ b/tests/examplefiles/clojure/escape_semicolon.clj.output @@ -1,21 +1,21 @@ '(' Punctuation '= ' Name.Builtin 'c' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'int ' Name.Builtin '\\;' Literal.String.Char ')' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation 'do ' Keyword '(' Punctuation '.readLine' Name.Function -' ' Text +' ' Text.Whitespace 's' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace ':line-start' Literal.String.Symbol ')' Punctuation -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/clojure/genclass.clj.output b/tests/examplefiles/clojure/genclass.clj.output index fd65ec1c..c61b7627 100644 --- a/tests/examplefiles/clojure/genclass.clj.output +++ b/tests/examplefiles/clojure/genclass.clj.output @@ -1,156 +1,156 @@ '; Copyright (c) Rich Hickey. All rights reserved.' Comment.Single -'\n' Text +'\n' Text.Whitespace '; The use and distribution terms for this software are covered by the' Comment.Single -'\n' Text +'\n' Text.Whitespace '; Common Public License 1.0 (http://opensource.org/licenses/cpl.php)' Comment.Single -'\n' Text +'\n' Text.Whitespace '; which can be found in the file CPL.TXT at the root of this distribution.' Comment.Single -'\n' Text +'\n' Text.Whitespace '; By using this software in any fashion, you are agreeing to be bound by' Comment.Single -'\n' Text +'\n' Text.Whitespace '; the terms of this license.' Comment.Single -'\n' Text +'\n' Text.Whitespace '; You must not remove this notice, or any other, from this software.' Comment.Single -'\n\n' Text +'\n\n' Text.Whitespace '(' Punctuation 'in-ns ' Name.Builtin "'clojure" Literal.String.Symbol ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace '(' Punctuation 'import ' Name.Builtin "'" Operator '(' Punctuation 'java.lang.reflect' Name.Function -' ' Text +' ' Text.Whitespace 'Modifier' Name.Variable -' ' Text +' ' Text.Whitespace 'Constructor' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace "'" Operator '(' Punctuation 'clojure.asm' Name.Function -' ' Text +' ' Text.Whitespace 'ClassWriter' Name.Variable -' ' Text +' ' Text.Whitespace 'ClassVisitor' Name.Variable -' ' Text +' ' Text.Whitespace 'Opcodes' Name.Variable -' ' Text +' ' Text.Whitespace 'Type' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace "'" Operator '(' Punctuation 'clojure.asm.commons' Name.Function -' ' Text +' ' Text.Whitespace 'Method' Name.Variable -' ' Text +' ' Text.Whitespace 'GeneratorAdapter' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace "'" Operator '(' Punctuation 'clojure.lang' Name.Function -' ' Text +' ' Text.Whitespace 'IPersistentMap' Name.Variable ')' Punctuation ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace ';(defn method-sig [#^java.lang.reflect.Method meth]' Comment.Single -'\n' Text +'\n' Text.Whitespace '; [(. meth (getName)) (seq (. meth (getParameterTypes)))])' Comment.Single -'\n\n' Text +'\n\n' Text.Whitespace '(' Punctuation 'defn- ' Keyword.Declaration 'non-private-methods' Name.Variable -' ' Text +' ' Text.Whitespace '[' Punctuation '#' Operator '^' Operator 'Class' Name.Variable -' ' Text +' ' Text.Whitespace 'c' Name.Variable ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'loop ' Keyword '[' Punctuation 'mm' Name.Variable -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'considered' Name.Variable -' ' Text +' ' Text.Whitespace '#' Operator '{' Punctuation '}' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'c' Name.Variable -' ' Text +' ' Text.Whitespace 'c' Name.Variable ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'if ' Keyword 'c' Name.Variable -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'let ' Keyword '[' Punctuation '[' Punctuation 'mm' Name.Variable -' ' Text +' ' Text.Whitespace 'considered' Name.Variable ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'loop ' Keyword '[' Punctuation 'mm' Name.Variable -' ' Text +' ' Text.Whitespace 'mm' Name.Variable -'\n ' Text +'\n ' Text.Whitespace 'considered' Name.Variable -' ' Text +' ' Text.Whitespace 'considered' Name.Variable -'\n ' Text +'\n ' Text.Whitespace 'meths' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'concat' Name.Function -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'seq ' Name.Builtin '(' Punctuation '. ' Keyword 'c' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'getDeclaredMethods' Name.Function ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'seq ' Name.Builtin '(' Punctuation '. ' Keyword 'c' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'getMethods' Name.Function ')' Punctuation @@ -158,126 +158,126 @@ ')' Punctuation ')' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'if ' Keyword 'meths' Name.Variable -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'let ' Keyword '[' Punctuation '#' Operator '^' Operator 'Method' Name.Variable -' ' Text +' ' Text.Whitespace 'meth' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'first ' Name.Builtin 'meths' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'mods' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'meth' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'getModifiers' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'mk' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'method-sig' Name.Function -' ' Text +' ' Text.Whitespace 'meth' Name.Variable ')' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'if ' Keyword '(' Punctuation 'or ' Name.Builtin '(' Punctuation 'considered' Name.Function -' ' Text +' ' Text.Whitespace 'mk' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'Modifier' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'isPrivate' Name.Function -' ' Text +' ' Text.Whitespace 'mods' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'Modifier' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'isStatic' Name.Function -' ' Text +' ' Text.Whitespace 'mods' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'Modifier' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'isFinal' Name.Function -' ' Text +' ' Text.Whitespace 'mods' Name.Variable ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'recur' Name.Function -' ' Text +' ' Text.Whitespace 'mm' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'conj ' Name.Builtin 'considered' Name.Variable -' ' Text +' ' Text.Whitespace 'mk' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation 'rest ' Name.Builtin 'meths' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'recur' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation 'assoc ' Name.Builtin 'mm' Name.Variable -' ' Text +' ' Text.Whitespace 'mk' Name.Variable -' ' Text +' ' Text.Whitespace 'meth' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation 'conj ' Name.Builtin 'considered' Name.Variable -' ' Text +' ' Text.Whitespace 'mk' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation 'rest ' Name.Builtin 'meths' Name.Variable @@ -285,81 +285,81 @@ ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '[' Punctuation 'mm' Name.Variable -' ' Text +' ' Text.Whitespace 'considered' Name.Variable ']' Punctuation ')' Punctuation ')' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'recur' Name.Function -' ' Text +' ' Text.Whitespace 'mm' Name.Variable -' ' Text +' ' Text.Whitespace 'considered' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'c' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'getSuperclass' Name.Function ')' Punctuation ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'mm' Name.Variable ')' Punctuation ')' Punctuation ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace '(' Punctuation 'defn- ' Keyword.Declaration 'ctor-sigs' Name.Variable -' ' Text +' ' Text.Whitespace '[' Punctuation 'super' Name.Variable ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'for ' Name.Builtin '[' Punctuation '#' Operator '^' Operator 'Constructor' Name.Variable -' ' Text +' ' Text.Whitespace 'ctor' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'super' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'getDeclaredConstructors' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace ':when' Literal.String.Symbol -' ' Text +' ' Text.Whitespace '(' Punctuation 'not ' Name.Builtin '(' Punctuation '. ' Keyword 'Modifier' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'isPrivate' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'ctor' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'getModifiers' Name.Function ')' Punctuation @@ -368,14 +368,14 @@ ')' Punctuation ')' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'apply ' Name.Builtin 'vector ' Name.Builtin '(' Punctuation '. ' Keyword 'ctor' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'getParameterTypes' Name.Function ')' Punctuation @@ -383,99 +383,99 @@ ')' Punctuation ')' Punctuation ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace '(' Punctuation 'defn- ' Keyword.Declaration 'escape-class-name' Name.Variable -' ' Text +' ' Text.Whitespace '[' Punctuation 'c' Name.Variable ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '.. ' Name.Builtin '(' Punctuation '.getSimpleName' Name.Function -' ' Text +' ' Text.Whitespace 'c' Name.Variable ')' Punctuation -' \n ' Text +' \n ' Text.Whitespace '(' Punctuation 'replace ' Name.Builtin '"[]"' Literal.String -' ' Text +' ' Text.Whitespace '"<>"' Literal.String ')' Punctuation ')' Punctuation ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace '(' Punctuation 'defn- ' Keyword.Declaration 'overload-name' Name.Variable -' ' Text +' ' Text.Whitespace '[' Punctuation 'mname' Name.Variable -' ' Text +' ' Text.Whitespace 'pclasses' Name.Variable ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'if ' Keyword '(' Punctuation 'seq ' Name.Builtin 'pclasses' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'apply ' Name.Builtin 'str ' Name.Builtin 'mname' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'interleave ' Name.Builtin '(' Punctuation 'repeat ' Name.Builtin '\\-' Literal.String.Char ')' Punctuation -' \n ' Text +' \n ' Text.Whitespace '(' Punctuation 'map ' Name.Builtin 'escape-class-name' Name.Variable -' ' Text +' ' Text.Whitespace 'pclasses' Name.Variable ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'str ' Name.Builtin 'mname' Name.Variable -' ' Text +' ' Text.Whitespace '"-void"' Literal.String ')' Punctuation ')' Punctuation ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace ';(distinct (map first(keys (mapcat non-private-methods [Object IPersistentMap]))))' Comment.Single -'\n\n' Text +'\n\n' Text.Whitespace '(' Punctuation 'defn ' Keyword.Declaration 'gen-class' Name.Variable -' \n ' Text +' \n ' Text.Whitespace '"Generates compiled bytecode for a class with the given\n package-qualified cname (which, as all names in these parameters, can\n be a string or symbol). The gen-class construct contains no\n implementation, as the implementation will be dynamically sought by\n the generated class in functions in a corresponding Clojure\n namespace. Given a generated class org.mydomain.MyClass, methods\n will be implemented that look for same-named functions in a Clojure\n namespace called org.domain.MyClass. The init and main\n functions (see below) will be found similarly. The static\n initializer for the generated class will attempt to load the Clojure\n support code for the class as a resource from the claspath, e.g. in\n the example case, org/mydomain/MyClass.clj\n\n Returns a map containing :name and :bytecode. Most uses will be\n satisfied by the higher-level gen-and-load-class and\n gen-and-store-class functions, which generate and immediately load,\n or generate and store to disk, respectively.\n\n Options should be a set of key/value pairs, all of which are optional:\n\n :extends aclass\n\n Specifies the superclass, the non-private methods of which will be\n overridden by the class. If not provided, defaults to Object.\n\n :implements [interface ...]\n\n One or more interfaces, the methods of which will be implemented by the class.\n\n :init name\n\n If supplied, names a function that will be called with the arguments\n to the constructor. Must return [[superclass-constructor-args] state] \n If not supplied, the constructor args are passed directly to\n the superclass constructor and the state will be nil\n\n :constructors {[param-types] [super-param-types], ...}\n\n By default, constructors are created for the generated class which\n match the signature(s) of the constructors for the superclass. This\n parameter may be used to explicitly specify constructors, each entry\n providing a mapping from a constructor signature to a superclass\n constructor signature. When you supply this, you must supply an :init\n specifier.\n\n :methods [[name [param-types] return-type], ...]\n\n The generated class automatically defines all of the non-private\n methods of its superclasses/interfaces. This parameter can be used\n to specify the signatures of additional methods of the generated\n class. Do not repeat superclass/interface signatures here.\n\n :main boolean\n\n If supplied and true, a static public main function will be\n generated. It will pass each string of the String[] argument as a\n separate argument to a function called \'main.\n\n :factory name\n\n If supplied, a (set of) public static factory function(s) will be\n created with the given name, and the same signature(s) as the\n constructor(s).\n \n :state name\n\n If supplied, a public final instance field with the given name will be\n created. You must supply an :init function in order to provide a\n value for the state. Note that, though final, the state can be a ref\n or agent, supporting the creation of Java objects with transactional\n or asynchronous mutation semantics.\n\n :exposes {protected-field-name {:get name :set name}, ...}\n\n Since the implementations of the methods of the generated class\n occur in Clojure functions, they have no access to the inherited\n protected fields of the superclass. This parameter can be used to\n generate public getter/setter methods exposing the protected field(s)\n for use in the implementation."' Literal.String -'\n\n ' Text +'\n\n ' Text.Whitespace '[' Punctuation 'cname' Name.Variable -' ' Text +' ' Text.Whitespace '&' Operator -' ' Text +' ' Text.Whitespace 'options' Name.Variable ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'let ' Keyword '[' Punctuation @@ -484,176 +484,176 @@ 'str ' Name.Builtin 'cname' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '{' Punctuation ':keys' Literal.String.Symbol -' ' Text +' ' Text.Whitespace '[' Punctuation 'extends' Name.Variable -' ' Text +' ' Text.Whitespace 'implements' Name.Variable -' ' Text +' ' Text.Whitespace 'constructors' Name.Variable -' ' Text +' ' Text.Whitespace 'methods' Name.Variable -' ' Text +' ' Text.Whitespace 'main' Name.Variable -' ' Text +' ' Text.Whitespace 'factory' Name.Variable -' ' Text +' ' Text.Whitespace 'state' Name.Variable -' ' Text +' ' Text.Whitespace 'init' Name.Variable -' ' Text +' ' Text.Whitespace 'exposes' Name.Variable ']' Punctuation '}' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation 'apply ' Name.Builtin 'hash-map ' Name.Builtin 'options' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'super' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'or ' Name.Builtin 'extends' Name.Variable -' ' Text +' ' Text.Whitespace 'Object' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'interfaces' Name.Variable -' ' Text +' ' Text.Whitespace 'implements' Name.Variable -'\n ' Text +'\n ' Text.Whitespace 'supers' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'cons ' Name.Builtin 'super' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'seq ' Name.Builtin 'interfaces' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'ctor-sig-map' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'or ' Name.Builtin 'constructors' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'zipmap ' Name.Builtin '(' Punctuation 'ctor-sigs' Name.Function -' ' Text +' ' Text.Whitespace 'super' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation 'ctor-sigs' Name.Function -' ' Text +' ' Text.Whitespace 'super' Name.Variable ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'cv' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'new ' Keyword 'ClassWriter' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'ClassWriter' Name.Variable -' ' Text +' ' Text.Whitespace 'COMPUTE_MAXS' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'cname' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'name ' Name.Builtin '(' Punctuation 'replace ' Name.Builtin '"."' Literal.String -' ' Text +' ' Text.Whitespace '"/"' Literal.String ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'ctype' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'Type' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'getObjectType' Name.Function -' ' Text +' ' Text.Whitespace 'cname' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'iname' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'fn ' Keyword '[' Punctuation 'c' Name.Variable ']' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation '.. ' Name.Builtin 'Type' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'getType' Name.Function -' ' Text +' ' Text.Whitespace 'c' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation 'getInternalName' Name.Function ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'totype' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'fn ' Keyword '[' Punctuation 'c' Name.Variable ']' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'Type' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'getType' Name.Function -' ' Text +' ' Text.Whitespace 'c' Name.Variable ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'to-types' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'fn ' Keyword '[' Punctuation 'cs' Name.Variable ']' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation 'if ' Keyword '(' Punctuation @@ -663,159 +663,159 @@ 'cs' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'into-array ' Name.Builtin '(' Punctuation 'map ' Name.Builtin 'totype' Name.Variable -' ' Text +' ' Text.Whitespace 'cs' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'make-array ' Name.Builtin 'Type' Name.Variable -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'obj-type' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'totype' Name.Function -' ' Text +' ' Text.Whitespace 'Object' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'arg-types' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'fn ' Keyword '[' Punctuation 'n' Name.Variable ']' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation 'if ' Keyword '(' Punctuation 'pos? ' Name.Builtin 'n' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'into-array ' Name.Builtin '(' Punctuation 'replicate ' Name.Builtin 'n' Name.Variable -' ' Text +' ' Text.Whitespace 'obj-type' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'make-array ' Name.Builtin 'Type' Name.Variable -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'super-type' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'totype' Name.Function -' ' Text +' ' Text.Whitespace 'super' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'init-name' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'str ' Name.Builtin 'init' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'factory-name' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'str ' Name.Builtin 'factory' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'state-name' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'str ' Name.Builtin 'state' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'main-name' Name.Variable -' ' Text +' ' Text.Whitespace '"main"' Literal.String -'\n ' Text +'\n ' Text.Whitespace 'var-name' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'fn ' Keyword '[' Punctuation 's' Name.Variable ']' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation 'str ' Name.Builtin 's' Name.Variable -' ' Text +' ' Text.Whitespace '"__var"' Literal.String ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'rt-type' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'totype' Name.Function -' ' Text +' ' Text.Whitespace 'clojure.lang.RT' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var-type' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'totype' Name.Function -' ' Text +' ' Text.Whitespace 'clojure.lang.Var' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'ifn-type' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'totype' Name.Function -' ' Text +' ' Text.Whitespace 'clojure.lang.IFn' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'iseq-type' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'totype' Name.Function -' ' Text +' ' Text.Whitespace 'clojure.lang.ISeq' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'ex-type' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'totype' Name.Function -' ' Text +' ' Text.Whitespace 'java.lang.UnsupportedOperationException' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'all-sigs' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'distinct ' Name.Builtin '(' Punctuation @@ -828,33 +828,33 @@ '[' Punctuation '[' Punctuation 'm' Name.Variable -' ' Text +' ' Text.Whitespace 'p' Name.Variable ']' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation 'key ' Name.Builtin '%' Name.Variable ')' Punctuation ']' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation 'm' Name.Variable -' ' Text +' ' Text.Whitespace '[' Punctuation 'p' Name.Variable ']' Punctuation '}' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation 'mapcat ' Name.Builtin 'non-private-methods' Name.Variable -' ' Text +' ' Text.Whitespace 'supers' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'map ' Name.Builtin '(' Punctuation @@ -862,47 +862,47 @@ '[' Punctuation '[' Punctuation 'm' Name.Variable -' ' Text +' ' Text.Whitespace 'p' Name.Variable ']' Punctuation ']' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '(' Punctuation 'str ' Name.Builtin 'm' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace '[' Punctuation 'p' Name.Variable ']' Punctuation '}' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace 'methods' Name.Variable ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'sigs-by-name' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'apply ' Name.Builtin 'merge-with ' Name.Builtin 'concat ' Name.Builtin '{' Punctuation '}' Punctuation -' ' Text +' ' Text.Whitespace 'all-sigs' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'overloads' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'into ' Name.Builtin '{' Punctuation '}' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation 'filter ' Name.Builtin '(' Punctuation @@ -910,43 +910,43 @@ '[' Punctuation '[' Punctuation 'm' Name.Variable -' ' Text +' ' Text.Whitespace 's' Name.Variable ']' Punctuation ']' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation 'rest ' Name.Builtin 's' Name.Variable ')' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace 'sigs-by-name' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var-fields' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'concat ' Name.Builtin '(' Punctuation 'and ' Name.Builtin 'init' Name.Variable -' ' Text +' ' Text.Whitespace '[' Punctuation 'init-name' Name.Variable ']' Punctuation ')' Punctuation -' \n ' Text +' \n ' Text.Whitespace '(' Punctuation 'and ' Name.Builtin 'main' Name.Variable -' ' Text +' ' Text.Whitespace '[' Punctuation 'main-name' Name.Variable ']' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'distinct ' Name.Builtin '(' Punctuation @@ -955,7 +955,7 @@ 'keys ' Name.Builtin 'sigs-by-name' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'mapcat ' Name.Builtin '(' Punctuation @@ -963,29 +963,29 @@ '[' Punctuation '[' Punctuation 'm' Name.Variable -' ' Text +' ' Text.Whitespace 's' Name.Variable ']' Punctuation ']' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation 'map ' Name.Builtin '#' Operator '(' Punctuation 'overload-name' Name.Function -' ' Text +' ' Text.Whitespace 'm' Name.Variable -' ' Text +' ' Text.Whitespace '%' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace 's' Name.Variable ')' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace 'overloads' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'mapcat ' Name.Builtin '(' Punctuation @@ -995,476 +995,476 @@ 'map ' Name.Builtin 'str' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace 'vals ' Name.Builtin 'val' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace 'exposes' Name.Variable ')' Punctuation ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'emit-get-var' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'fn ' Keyword '[' Punctuation 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'v' Name.Variable ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'let ' Keyword '[' Punctuation 'false-label' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'newLabel' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'end-label' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'newLabel' Name.Variable ')' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'getStatic' Name.Variable -' ' Text +' ' Text.Whitespace 'ctype' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'var-name' Name.Function -' ' Text +' ' Text.Whitespace 'v' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace 'var-type' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'dup' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'invokeVirtual' Name.Variable -' ' Text +' ' Text.Whitespace 'var-type' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'Method' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'getMethod' Name.Function -' ' Text +' ' Text.Whitespace '"boolean isBound()"' Literal.String ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'ifZCmp' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'GeneratorAdapter' Name.Variable -' ' Text +' ' Text.Whitespace 'EQ' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace 'false-label' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'invokeVirtual' Name.Variable -' ' Text +' ' Text.Whitespace 'var-type' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'Method' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'getMethod' Name.Function -' ' Text +' ' Text.Whitespace '"Object get()"' Literal.String ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'goTo' Name.Variable -' ' Text +' ' Text.Whitespace 'end-label' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'mark' Name.Variable -' ' Text +' ' Text.Whitespace 'false-label' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'pop' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'visitInsn' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'Opcodes' Name.Variable -' ' Text +' ' Text.Whitespace 'ACONST_NULL' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'mark' Name.Variable -' ' Text +' ' Text.Whitespace 'end-label' Name.Variable ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'emit-forwarding-method' Name.Variable -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'fn ' Keyword '[' Punctuation 'mname' Name.Variable -' ' Text +' ' Text.Whitespace 'pclasses' Name.Variable -' ' Text +' ' Text.Whitespace 'rclass' Name.Variable -' ' Text +' ' Text.Whitespace 'else-gen' Name.Variable ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'let ' Keyword '[' Punctuation 'ptypes' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'to-types' Name.Function -' ' Text +' ' Text.Whitespace 'pclasses' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'rtype' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'totype' Name.Function -' ' Text +' ' Text.Whitespace 'rclass' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'm' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'new ' Keyword 'Method' Name.Variable -' ' Text +' ' Text.Whitespace 'mname' Name.Variable -' ' Text +' ' Text.Whitespace 'rtype' Name.Variable -' ' Text +' ' Text.Whitespace 'ptypes' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'is-overload' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'overloads' Name.Function -' ' Text +' ' Text.Whitespace 'mname' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'new ' Keyword 'GeneratorAdapter' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'Opcodes' Name.Variable -' ' Text +' ' Text.Whitespace 'ACC_PUBLIC' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace 'm' Name.Variable -' ' Text +' ' Text.Whitespace 'nil' Name.Variable -' ' Text +' ' Text.Whitespace 'nil' Name.Variable -' ' Text +' ' Text.Whitespace 'cv' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'found-label' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'newLabel' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'else-label' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'newLabel' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'end-label' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'newLabel' Name.Function ')' Punctuation ')' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'visitCode' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'when ' Name.Builtin 'is-overload' Name.Variable -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'emit-get-var' Name.Function -' ' Text +' ' Text.Whitespace 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'overload-name' Name.Function -' ' Text +' ' Text.Whitespace 'mname' Name.Variable -' ' Text +' ' Text.Whitespace 'pclasses' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'dup' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'ifNonNull' Name.Function -' ' Text +' ' Text.Whitespace 'found-label' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'pop' Name.Function ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'emit-get-var' Name.Function -' ' Text +' ' Text.Whitespace 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'mname' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'dup' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'ifNull' Name.Function -' ' Text +' ' Text.Whitespace 'else-label' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'when ' Name.Builtin 'is-overload' Name.Variable -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'mark' Name.Function -' ' Text +' ' Text.Whitespace 'found-label' Name.Variable ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace ';if found' Comment.Single -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'loadThis' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace ';box args' Comment.Single -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'dotimes ' Name.Builtin 'i' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'count ' Name.Builtin 'ptypes' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'loadArg' Name.Function -' ' Text +' ' Text.Whitespace 'i' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'clojure.lang.Compiler$HostExpr' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'emitBoxReturn' Name.Function -' ' Text +' ' Text.Whitespace 'nil' Name.Variable -' ' Text +' ' Text.Whitespace 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'nth ' Name.Builtin 'pclasses' Name.Variable -' ' Text +' ' Text.Whitespace 'i' Name.Variable ')' Punctuation ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace ';call fn' Comment.Single -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'invokeInterface' Name.Function -' ' Text +' ' Text.Whitespace 'ifn-type' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'new ' Keyword 'Method' Name.Variable -' ' Text +' ' Text.Whitespace '"invoke"' Literal.String -' ' Text +' ' Text.Whitespace 'obj-type' Name.Variable -' \n ' Text +' \n ' Text.Whitespace '(' Punctuation 'into-array ' Name.Builtin '(' Punctuation 'cons ' Name.Builtin 'obj-type' Name.Variable -' \n ' Text +' \n ' Text.Whitespace '(' Punctuation 'replicate ' Name.Builtin '(' Punctuation 'count ' Name.Builtin 'ptypes' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace 'obj-type' Name.Variable ')' Punctuation ')' Punctuation @@ -1472,20 +1472,20 @@ ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace ';unbox return' Comment.Single -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'unbox' Name.Function -' ' Text +' ' Text.Whitespace 'rtype' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'when ' Name.Builtin '(' Punctuation @@ -1493,392 +1493,392 @@ '(' Punctuation '. ' Keyword 'rtype' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'getSort' Name.Function ')' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'Type' Name.Variable -' ' Text +' ' Text.Whitespace 'VOID' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'pop' Name.Function ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'goTo' Name.Function -' ' Text +' ' Text.Whitespace 'end-label' Name.Variable ')' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace ';else call supplied alternative generator' Comment.Single -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'mark' Name.Function -' ' Text +' ' Text.Whitespace 'else-label' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'pop' Name.Function ')' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace '(' Punctuation 'else-gen' Name.Function -' ' Text +' ' Text.Whitespace 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'm' Name.Variable ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'mark' Name.Function -' ' Text +' ' Text.Whitespace 'end-label' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'returnValue' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'endMethod' Name.Function ')' Punctuation ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace ';start class definition' Comment.Single -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'cv' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'visit' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'Opcodes' Name.Variable -' ' Text +' ' Text.Whitespace 'V1_5' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'Opcodes' Name.Variable -' ' Text +' ' Text.Whitespace 'ACC_PUBLIC' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'cname' Name.Variable -' ' Text +' ' Text.Whitespace 'nil' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'iname' Name.Function -' ' Text +' ' Text.Whitespace 'super' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'when ' Name.Builtin 'interfaces' Name.Variable -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'into-array ' Name.Builtin '(' Punctuation 'map ' Name.Builtin 'iname' Name.Variable -' ' Text +' ' Text.Whitespace 'interfaces' Name.Variable ')' Punctuation ')' Punctuation ')' Punctuation ')' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace ';static fields for vars' Comment.Single -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'doseq ' Name.Builtin 'v' Name.Variable -' ' Text +' ' Text.Whitespace 'var-fields' Name.Variable -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'cv' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'visitField' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation '+ ' Name.Builtin '(' Punctuation '. ' Keyword 'Opcodes' Name.Variable -' ' Text +' ' Text.Whitespace 'ACC_PUBLIC' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'Opcodes' Name.Variable -' ' Text +' ' Text.Whitespace 'ACC_FINAL' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'Opcodes' Name.Variable -' ' Text +' ' Text.Whitespace 'ACC_STATIC' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'var-name' Name.Function -' ' Text +' ' Text.Whitespace 'v' Name.Variable ')' Punctuation -' \n ' Text +' \n ' Text.Whitespace '(' Punctuation '. ' Keyword 'var-type' Name.Variable -' ' Text +' ' Text.Whitespace 'getDescriptor' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'nil' Name.Variable -' ' Text +' ' Text.Whitespace 'nil' Name.Variable ')' Punctuation ')' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace ';instance field for state' Comment.Single -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'when ' Name.Builtin 'state' Name.Variable -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'cv' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'visitField' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation '+ ' Name.Builtin '(' Punctuation '. ' Keyword 'Opcodes' Name.Variable -' ' Text +' ' Text.Whitespace 'ACC_PUBLIC' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'Opcodes' Name.Variable -' ' Text +' ' Text.Whitespace 'ACC_FINAL' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'state-name' Name.Variable -' \n ' Text +' \n ' Text.Whitespace '(' Punctuation '. ' Keyword 'obj-type' Name.Variable -' ' Text +' ' Text.Whitespace 'getDescriptor' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'nil' Name.Variable -' ' Text +' ' Text.Whitespace 'nil' Name.Variable ')' Punctuation ')' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace ';static init to set up var fields and load clj' Comment.Single -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'let ' Keyword '[' Punctuation 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'new ' Keyword 'GeneratorAdapter' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '+ ' Name.Builtin '(' Punctuation '. ' Keyword 'Opcodes' Name.Variable -' ' Text +' ' Text.Whitespace 'ACC_PUBLIC' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'Opcodes' Name.Variable -' ' Text +' ' Text.Whitespace 'ACC_STATIC' Name.Variable ')' Punctuation ')' Punctuation -' \n ' Text +' \n ' Text.Whitespace '(' Punctuation '. ' Keyword 'Method' Name.Variable -' ' Text +' ' Text.Whitespace 'getMethod' Name.Variable -' ' Text +' ' Text.Whitespace '"void <clinit> ()"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'nil' Name.Variable -' ' Text +' ' Text.Whitespace 'nil' Name.Variable -' ' Text +' ' Text.Whitespace 'cv' Name.Variable ')' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'visitCode' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'doseq ' Name.Builtin 'v' Name.Variable -' ' Text +' ' Text.Whitespace 'var-fields' Name.Variable -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'push' Name.Variable -' ' Text +' ' Text.Whitespace 'name' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'push' Name.Variable -' ' Text +' ' Text.Whitespace 'v' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'invokeStatic' Name.Function -' ' Text +' ' Text.Whitespace 'rt-type' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'Method' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'getMethod' Name.Function -' ' Text +' ' Text.Whitespace '"clojure.lang.Var var(String,String)"' Literal.String ')' Punctuation ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'putStatic' Name.Variable -' ' Text +' ' Text.Whitespace 'ctype' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'var-name' Name.Function -' ' Text +' ' Text.Whitespace 'v' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace 'var-type' Name.Variable ')' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'push' Name.Variable -' ' Text +' ' Text.Whitespace 'ctype' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'push' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'str ' Name.Builtin '(' Punctuation @@ -1886,297 +1886,297 @@ 'name ' Name.Builtin 'replace ' Name.Builtin '\\.' Literal.String.Char -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'java.io.File' Name.Variable -' ' Text +' ' Text.Whitespace 'separatorChar' Name.Variable ')' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace '".clj"' Literal.String ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'invokeStatic' Name.Function -' ' Text +' ' Text.Whitespace 'rt-type' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'Method' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'getMethod' Name.Function -' ' Text +' ' Text.Whitespace '"void loadResourceScript(Class,String)"' Literal.String ')' Punctuation ')' Punctuation ')' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'returnValue' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'endMethod' Name.Function ')' Punctuation ')' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace ';ctors' Comment.Single -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'doseq ' Name.Builtin '[' Punctuation 'pclasses' Name.Variable -' ' Text +' ' Text.Whitespace 'super-pclasses' Name.Variable ']' Punctuation -' ' Text +' ' Text.Whitespace 'ctor-sig-map' Name.Variable -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'let ' Keyword '[' Punctuation 'ptypes' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'to-types' Name.Function -' ' Text +' ' Text.Whitespace 'pclasses' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'super-ptypes' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'to-types' Name.Function -' ' Text +' ' Text.Whitespace 'super-pclasses' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'm' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'new ' Keyword 'Method' Name.Variable -' ' Text +' ' Text.Whitespace '"<init>"' Literal.String -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'Type' Name.Variable -' ' Text +' ' Text.Whitespace 'VOID_TYPE' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace 'ptypes' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'super-m' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'new ' Keyword 'Method' Name.Variable -' ' Text +' ' Text.Whitespace '"<init>"' Literal.String -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'Type' Name.Variable -' ' Text +' ' Text.Whitespace 'VOID_TYPE' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace 'super-ptypes' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'new ' Keyword 'GeneratorAdapter' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'Opcodes' Name.Variable -' ' Text +' ' Text.Whitespace 'ACC_PUBLIC' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace 'm' Name.Variable -' ' Text +' ' Text.Whitespace 'nil' Name.Variable -' ' Text +' ' Text.Whitespace 'nil' Name.Variable -' ' Text +' ' Text.Whitespace 'cv' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'no-init-label' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'newLabel' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'end-label' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'newLabel' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'nth-method' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'Method' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'getMethod' Name.Function -' ' Text +' ' Text.Whitespace '"Object nth(Object,int)"' Literal.String ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'local' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'newLocal' Name.Variable -' ' Text +' ' Text.Whitespace 'obj-type' Name.Variable ')' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'visitCode' Name.Function ')' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace '(' Punctuation 'if ' Keyword 'init' Name.Variable -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'do' Name.Function -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'emit-get-var' Name.Function -' ' Text +' ' Text.Whitespace 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'init-name' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'dup' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'ifNull' Name.Variable -' ' Text +' ' Text.Whitespace 'no-init-label' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace ';box init args' Comment.Single -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'dotimes ' Name.Builtin 'i' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'count ' Name.Builtin 'pclasses' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'loadArg' Name.Function -' ' Text +' ' Text.Whitespace 'i' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'clojure.lang.Compiler$HostExpr' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'emitBoxReturn' Name.Function -' ' Text +' ' Text.Whitespace 'nil' Name.Variable -' ' Text +' ' Text.Whitespace 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'nth ' Name.Builtin 'pclasses' Name.Variable -' ' Text +' ' Text.Whitespace 'i' Name.Variable ')' Punctuation ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace ';call init fn' Comment.Single -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'invokeInterface' Name.Function -' ' Text +' ' Text.Whitespace 'ifn-type' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'new ' Keyword 'Method' Name.Variable -' ' Text +' ' Text.Whitespace '"invoke"' Literal.String -' ' Text +' ' Text.Whitespace 'obj-type' Name.Variable -' \n ' Text +' \n ' Text.Whitespace '(' Punctuation 'arg-types' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation 'count ' Name.Builtin 'ptypes' Name.Variable @@ -2185,428 +2185,428 @@ ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace ';expecting [[super-ctor-args] state] returned' Comment.Single -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'dup' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'push' Name.Variable -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'invokeStatic' Name.Function -' ' Text +' ' Text.Whitespace 'rt-type' Name.Variable -' ' Text +' ' Text.Whitespace 'nth-method' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'storeLocal' Name.Variable -' ' Text +' ' Text.Whitespace 'local' Name.Variable ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'loadThis' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'dupX1' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'dotimes ' Name.Builtin 'i' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'count ' Name.Builtin 'super-pclasses' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'loadLocal' Name.Variable -' ' Text +' ' Text.Whitespace 'local' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'push' Name.Variable -' ' Text +' ' Text.Whitespace 'i' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'invokeStatic' Name.Function -' ' Text +' ' Text.Whitespace 'rt-type' Name.Variable -' ' Text +' ' Text.Whitespace 'nth-method' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'clojure.lang.Compiler$HostExpr' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'emitUnboxArg' Name.Function -' ' Text +' ' Text.Whitespace 'nil' Name.Variable -' ' Text +' ' Text.Whitespace 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'nth ' Name.Builtin 'super-pclasses' Name.Variable -' ' Text +' ' Text.Whitespace 'i' Name.Variable ')' Punctuation ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'invokeConstructor' Name.Function -' ' Text +' ' Text.Whitespace 'super-type' Name.Variable -' ' Text +' ' Text.Whitespace 'super-m' Name.Variable ')' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace '(' Punctuation 'if ' Keyword 'state' Name.Variable -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'do' Name.Function -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'push' Name.Variable -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'invokeStatic' Name.Function -' ' Text +' ' Text.Whitespace 'rt-type' Name.Variable -' ' Text +' ' Text.Whitespace 'nth-method' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'putField' Name.Function -' ' Text +' ' Text.Whitespace 'ctype' Name.Variable -' ' Text +' ' Text.Whitespace 'state-name' Name.Variable -' ' Text +' ' Text.Whitespace 'obj-type' Name.Variable ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'pop' Name.Variable ')' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'goTo' Name.Variable -' ' Text +' ' Text.Whitespace 'end-label' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace ';no init found' Comment.Single -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'mark' Name.Variable -' ' Text +' ' Text.Whitespace 'no-init-label' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'throwException' Name.Function -' ' Text +' ' Text.Whitespace 'ex-type' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'str ' Name.Builtin 'init-name' Name.Variable -' ' Text +' ' Text.Whitespace '" not defined"' Literal.String ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'mark' Name.Variable -' ' Text +' ' Text.Whitespace 'end-label' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'if ' Keyword '(' Punctuation '= ' Name.Builtin 'pclasses' Name.Variable -' ' Text +' ' Text.Whitespace 'super-pclasses' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'do' Name.Function -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'loadThis' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'loadArgs' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'invokeConstructor' Name.Function -' ' Text +' ' Text.Whitespace 'super-type' Name.Variable -' ' Text +' ' Text.Whitespace 'super-m' Name.Variable ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'throw' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation 'new ' Keyword 'Exception' Name.Variable -' ' Text +' ' Text.Whitespace '":init not specified, but ctor and super ctor args differ"' Literal.String ')' Punctuation ')' Punctuation ')' Punctuation ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'returnValue' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'endMethod' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace ';factory' Comment.Single -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'when ' Name.Builtin 'factory' Name.Variable -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'let ' Keyword '[' Punctuation 'fm' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'new ' Keyword 'Method' Name.Variable -' ' Text +' ' Text.Whitespace 'factory-name' Name.Variable -' ' Text +' ' Text.Whitespace 'ctype' Name.Variable -' ' Text +' ' Text.Whitespace 'ptypes' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'new ' Keyword 'GeneratorAdapter' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '+ ' Name.Builtin '(' Punctuation '. ' Keyword 'Opcodes' Name.Variable -' ' Text +' ' Text.Whitespace 'ACC_PUBLIC' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'Opcodes' Name.Variable -' ' Text +' ' Text.Whitespace 'ACC_STATIC' Name.Variable ')' Punctuation ')' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'fm' Name.Variable -' ' Text +' ' Text.Whitespace 'nil' Name.Variable -' ' Text +' ' Text.Whitespace 'nil' Name.Variable -' ' Text +' ' Text.Whitespace 'cv' Name.Variable ')' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'visitCode' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'newInstance' Name.Variable -' ' Text +' ' Text.Whitespace 'ctype' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'dup' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'loadArgs' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'invokeConstructor' Name.Function -' ' Text +' ' Text.Whitespace 'ctype' Name.Variable -' ' Text +' ' Text.Whitespace 'm' Name.Variable ')' Punctuation ')' Punctuation -' \n ' Text +' \n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'returnValue' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'endMethod' Name.Function ')' Punctuation @@ -2615,121 +2615,121 @@ ')' Punctuation ')' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace ";add methods matching supers', if no fn -> call super" Comment.Single -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'let ' Keyword '[' Punctuation 'mm' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'non-private-methods' Name.Function -' ' Text +' ' Text.Whitespace 'super' Name.Variable ')' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'doseq ' Name.Builtin '#' Operator '^' Operator 'java.lang.reflect.Method' Name.Variable -' ' Text +' ' Text.Whitespace 'meth' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'vals ' Name.Builtin 'mm' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'emit-forwarding-method' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation '.getName' Name.Function -' ' Text +' ' Text.Whitespace 'meth' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation '.getParameterTypes' Name.Function -' ' Text +' ' Text.Whitespace 'meth' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation '.getReturnType' Name.Function -' ' Text +' ' Text.Whitespace 'meth' Name.Variable ')' Punctuation -' \n ' Text +' \n ' Text.Whitespace '(' Punctuation 'fn ' Keyword '[' Punctuation 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'm' Name.Variable ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'loadThis' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace ';push args' Comment.Single -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'loadArgs' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace ';call super' Comment.Single -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'visitMethodInsn' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'Opcodes' Name.Variable -' ' Text +' ' Text.Whitespace 'INVOKESPECIAL' Name.Variable ')' Punctuation -' \n ' Text +' \n ' Text.Whitespace '(' Punctuation '. ' Keyword 'super-type' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'getInternalName' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'm' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'getName' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'm' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'getDescriptor' Name.Function ')' Punctuation @@ -2739,91 +2739,91 @@ ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace ";add methods matching interfaces', if no fn -> throw" Comment.Single -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'doseq ' Name.Builtin '#' Operator '^' Operator 'Class' Name.Variable -' ' Text +' ' Text.Whitespace 'iface' Name.Variable -' ' Text +' ' Text.Whitespace 'interfaces' Name.Variable -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'doseq ' Name.Builtin '#' Operator '^' Operator 'java.lang.reflect.Method' Name.Variable -' ' Text +' ' Text.Whitespace 'meth' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'iface' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'getMethods' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'when-not ' Name.Builtin '(' Punctuation 'contains? ' Name.Builtin 'mm' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'method-sig' Name.Function -' ' Text +' ' Text.Whitespace 'meth' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'emit-forwarding-method' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation '.getName' Name.Function -' ' Text +' ' Text.Whitespace 'meth' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation '.getParameterTypes' Name.Function -' ' Text +' ' Text.Whitespace 'meth' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation '.getReturnType' Name.Function -' ' Text +' ' Text.Whitespace 'meth' Name.Variable ')' Punctuation -' \n ' Text +' \n ' Text.Whitespace '(' Punctuation 'fn ' Keyword '[' Punctuation 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'm' Name.Variable ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'throwException' Name.Function -' ' Text +' ' Text.Whitespace 'ex-type' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'm' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'getName' Name.Function ')' Punctuation @@ -2835,58 +2835,58 @@ ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace ';extra methods' Comment.Single -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'doseq ' Name.Builtin '[' Punctuation 'mname' Name.Variable -' ' Text +' ' Text.Whitespace 'pclasses' Name.Variable -' ' Text +' ' Text.Whitespace 'rclass' Name.Variable -' ' Text +' ' Text.Whitespace ':as' Literal.String.Symbol -' ' Text +' ' Text.Whitespace 'msig' Name.Variable ']' Punctuation -' ' Text +' ' Text.Whitespace 'methods' Name.Variable -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'emit-forwarding-method' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation 'str ' Name.Builtin 'mname' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace 'pclasses' Name.Variable -' ' Text +' ' Text.Whitespace 'rclass' Name.Variable -' \n ' Text +' \n ' Text.Whitespace '(' Punctuation 'fn ' Keyword '[' Punctuation 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'm' Name.Variable ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'throwException' Name.Function -' ' Text +' ' Text.Whitespace 'ex-type' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'm' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'getName' Name.Function ')' Punctuation @@ -2897,157 +2897,157 @@ ')' Punctuation ')' Punctuation ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace ';main' Comment.Single -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'when ' Name.Builtin 'main' Name.Variable -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'let ' Keyword '[' Punctuation 'm' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'Method' Name.Variable -' ' Text +' ' Text.Whitespace 'getMethod' Name.Variable -' ' Text +' ' Text.Whitespace '"void main (String[])"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'new ' Keyword 'GeneratorAdapter' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '+ ' Name.Builtin '(' Punctuation '. ' Keyword 'Opcodes' Name.Variable -' ' Text +' ' Text.Whitespace 'ACC_PUBLIC' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'Opcodes' Name.Variable -' ' Text +' ' Text.Whitespace 'ACC_STATIC' Name.Variable ')' Punctuation ')' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'm' Name.Variable -' ' Text +' ' Text.Whitespace 'nil' Name.Variable -' ' Text +' ' Text.Whitespace 'nil' Name.Variable -' ' Text +' ' Text.Whitespace 'cv' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'no-main-label' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'newLabel' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'end-label' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'newLabel' Name.Variable ')' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'visitCode' Name.Function ')' Punctuation ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace '(' Punctuation 'emit-get-var' Name.Function -' ' Text +' ' Text.Whitespace 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'main-name' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'dup' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'ifNull' Name.Variable -' ' Text +' ' Text.Whitespace 'no-main-label' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'loadArgs' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'invokeStatic' Name.Function -' ' Text +' ' Text.Whitespace 'rt-type' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'Method' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'getMethod' Name.Function -' ' Text +' ' Text.Whitespace '"clojure.lang.ISeq seq(Object)"' Literal.String ')' Punctuation ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'invokeInterface' Name.Function -' ' Text +' ' Text.Whitespace 'ifn-type' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'new ' Keyword 'Method' Name.Variable -' ' Text +' ' Text.Whitespace '"applyTo"' Literal.String -' ' Text +' ' Text.Whitespace 'obj-type' Name.Variable -' \n ' Text +' \n ' Text.Whitespace '(' Punctuation 'into-array ' Name.Builtin '[' Punctuation @@ -3057,258 +3057,258 @@ ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'pop' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'goTo' Name.Variable -' ' Text +' ' Text.Whitespace 'end-label' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace ';no main found' Comment.Single -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'mark' Name.Variable -' ' Text +' ' Text.Whitespace 'no-main-label' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'throwException' Name.Function -' ' Text +' ' Text.Whitespace 'ex-type' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'str ' Name.Builtin 'main-name' Name.Variable -' ' Text +' ' Text.Whitespace '" not defined"' Literal.String ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'mark' Name.Variable -' ' Text +' ' Text.Whitespace 'end-label' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'returnValue' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'endMethod' Name.Function ')' Punctuation ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace ';field exposers' Comment.Single -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'doseq ' Name.Builtin '[' Punctuation 'f' Name.Variable -' ' Text +' ' Text.Whitespace '{' Punctuation 'getter' Name.Variable -' ' Text +' ' Text.Whitespace ':get' Literal.String.Symbol -' ' Text +' ' Text.Whitespace 'setter' Name.Variable -' ' Text +' ' Text.Whitespace ':set' Literal.String.Symbol '}' Punctuation ']' Punctuation -' ' Text +' ' Text.Whitespace 'exposes' Name.Variable -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'let ' Keyword '[' Punctuation 'fld' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '.getField' Name.Function -' ' Text +' ' Text.Whitespace 'super' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'str ' Name.Builtin 'f' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'ftype' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'totype' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation '.getType' Name.Function -' ' Text +' ' Text.Whitespace 'fld' Name.Variable ')' Punctuation ')' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'when ' Name.Builtin 'getter' Name.Variable -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'let ' Keyword '[' Punctuation 'm' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'new ' Keyword 'Method' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'str ' Name.Builtin 'getter' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace 'ftype' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'to-types' Name.Function -' ' Text +' ' Text.Whitespace '[' Punctuation ']' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'new ' Keyword 'GeneratorAdapter' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'Opcodes' Name.Variable -' ' Text +' ' Text.Whitespace 'ACC_PUBLIC' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace 'm' Name.Variable -' ' Text +' ' Text.Whitespace 'nil' Name.Variable -' ' Text +' ' Text.Whitespace 'nil' Name.Variable -' ' Text +' ' Text.Whitespace 'cv' Name.Variable ')' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'visitCode' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'loadThis' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'getField' Name.Variable -' ' Text +' ' Text.Whitespace 'ctype' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'str ' Name.Builtin 'f' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace 'ftype' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'returnValue' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'endMethod' Name.Function ')' Punctuation ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'when ' Name.Builtin 'setter' Name.Variable -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'let ' Keyword '[' Punctuation 'm' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'new ' Keyword 'Method' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'str ' Name.Builtin 'setter' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'Type' Name.Variable -' ' Text +' ' Text.Whitespace 'VOID_TYPE' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation 'into-array ' Name.Builtin '[' Punctuation @@ -3316,82 +3316,82 @@ ']' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'new ' Keyword 'GeneratorAdapter' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'Opcodes' Name.Variable -' ' Text +' ' Text.Whitespace 'ACC_PUBLIC' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace 'm' Name.Variable -' ' Text +' ' Text.Whitespace 'nil' Name.Variable -' ' Text +' ' Text.Whitespace 'nil' Name.Variable -' ' Text +' ' Text.Whitespace 'cv' Name.Variable ')' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'visitCode' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'loadThis' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'loadArgs' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace 'putField' Name.Variable -' ' Text +' ' Text.Whitespace 'ctype' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'str ' Name.Builtin 'f' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace 'ftype' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'returnValue' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'gen' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'endMethod' Name.Function ')' Punctuation @@ -3400,28 +3400,28 @@ ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace ';finish class def' Comment.Single -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '. ' Keyword 'cv' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'visitEnd' Name.Function ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '{' Punctuation ':name' Literal.String.Symbol -' ' Text +' ' Text.Whitespace 'name ' Name.Builtin ':bytecode' Literal.String.Symbol -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'cv' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'toByteArray' Name.Function ')' Punctuation @@ -3429,110 +3429,110 @@ '}' Punctuation ')' Punctuation ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace '(' Punctuation 'defn ' Keyword.Declaration 'gen-and-load-class' Name.Variable -' \n ' Text +' \n ' Text.Whitespace '"Generates and immediately loads the bytecode for the specified\n class. Note that a class generated this way can be loaded only once\n - the JVM supports only one class with a given name per\n classloader. Subsequent to generation you can import it into any\n desired namespaces just like any other class. See gen-class for a\n description of the options."' Literal.String -'\n\n ' Text +'\n\n ' Text.Whitespace '[' Punctuation 'name ' Name.Builtin '&' Operator -' ' Text +' ' Text.Whitespace 'options' Name.Variable ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'let ' Keyword '[' Punctuation '{' Punctuation ':keys' Literal.String.Symbol -' ' Text +' ' Text.Whitespace '[' Punctuation 'name ' Name.Builtin 'bytecode' Name.Variable ']' Punctuation '}' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'apply ' Name.Builtin 'gen-class' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'str ' Name.Builtin 'name' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace 'options' Name.Variable ')' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '.. ' Name.Builtin 'clojure.lang.RT' Name.Variable -' ' Text +' ' Text.Whitespace 'ROOT_CLASSLOADER' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'defineClass' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation 'str ' Name.Builtin 'name' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace 'bytecode' Name.Variable ')' Punctuation ')' Punctuation ')' Punctuation ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace '(' Punctuation 'defn ' Keyword.Declaration 'gen-and-save-class' Name.Variable -' \n ' Text +' \n ' Text.Whitespace '"Generates the bytecode for the named class and stores in a .class\n file in a subpath of the supplied path, the directories for which\n must already exist. See gen-class for a description of the options"' Literal.String -'\n\n ' Text +'\n\n ' Text.Whitespace '[' Punctuation 'path ' Name.Builtin 'name ' Name.Builtin '&' Operator -' ' Text +' ' Text.Whitespace 'options' Name.Variable ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'let ' Keyword '[' Punctuation '{' Punctuation ':keys' Literal.String.Symbol -' ' Text +' ' Text.Whitespace '[' Punctuation 'name ' Name.Builtin 'bytecode' Name.Variable ']' Punctuation '}' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation 'apply ' Name.Builtin 'gen-class' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'str ' Name.Builtin 'name' Name.Variable ')' Punctuation -' ' Text +' ' Text.Whitespace 'options' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'file' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'java.io.File.' Name.Function -' ' Text +' ' Text.Whitespace 'path ' Name.Builtin '(' Punctuation 'str ' Name.Builtin @@ -3541,227 +3541,230 @@ 'name ' Name.Builtin 'replace ' Name.Builtin '\\.' Literal.String.Char -' ' Text +' ' Text.Whitespace '(' Punctuation '. ' Keyword 'java.io.File' Name.Variable -' ' Text +' ' Text.Whitespace 'separatorChar' Name.Variable ')' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace '".class"' Literal.String ')' Punctuation ')' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '.createNewFile' Name.Function -' ' Text +' ' Text.Whitespace 'file' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'with-open ' Name.Builtin 'f' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'java.io.FileOutputStream.' Name.Function -' ' Text +' ' Text.Whitespace 'file' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '.write' Name.Function -' ' Text +' ' Text.Whitespace 'f' Name.Variable -' ' Text +' ' Text.Whitespace 'bytecode' Name.Variable ')' Punctuation ')' Punctuation ')' Punctuation ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace '(' Punctuation 'comment' Name.Function -'\n' Text +'\n' Text.Whitespace ';usage' Comment.Single -'\n' Text +'\n' Text.Whitespace '(' Punctuation 'gen-class' Name.Function -' \n ' Text +' \n ' Text.Whitespace 'package-qualified-name' Name.Variable -'\n ' Text +'\n ' Text.Whitespace ';all below are optional' Comment.Single -'\n ' Text +'\n ' Text.Whitespace ':extends' Literal.String.Symbol -' ' Text +' ' Text.Whitespace 'aclass' Name.Variable -'\n ' Text +'\n ' Text.Whitespace ':implements' Literal.String.Symbol -' ' Text +' ' Text.Whitespace '[' Punctuation 'interface' Name.Variable -' ' Text +' ' Text.Whitespace '...' Name.Variable ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace ':constructors' Literal.String.Symbol -' ' Text +' ' Text.Whitespace '{' Punctuation '[' Punctuation 'param-types' Name.Variable ']' Punctuation -' ' Text +' ' Text.Whitespace '[' Punctuation 'super-param-types' Name.Variable ']' Punctuation -', ' Text +',' Text +' ' Text.Whitespace '}' Punctuation -'\n ' Text +'\n ' Text.Whitespace ':methods' Literal.String.Symbol -' ' Text +' ' Text.Whitespace '[' Punctuation '[' Punctuation 'name ' Name.Builtin '[' Punctuation 'param-types' Name.Variable ']' Punctuation -' ' Text +' ' Text.Whitespace 'return-type' Name.Variable ']' Punctuation -', ' Text +',' Text +' ' Text.Whitespace ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace ':main' Literal.String.Symbol -' ' Text +' ' Text.Whitespace 'boolean' Name.Variable -'\n ' Text +'\n ' Text.Whitespace ':factory' Literal.String.Symbol -' ' Text +' ' Text.Whitespace 'name' Name.Variable -'\n ' Text +'\n ' Text.Whitespace ':state' Literal.String.Symbol -' ' Text +' ' Text.Whitespace 'name' Name.Variable -'\n ' Text +'\n ' Text.Whitespace ':init' Literal.String.Symbol -' ' Text +' ' Text.Whitespace 'name' Name.Variable -'\n ' Text +'\n ' Text.Whitespace ':exposes' Literal.String.Symbol -' ' Text +' ' Text.Whitespace '{' Punctuation 'protected-field' Name.Variable -' ' Text +' ' Text.Whitespace '{' Punctuation ':get' Literal.String.Symbol -' ' Text +' ' Text.Whitespace 'name ' Name.Builtin ':set' Literal.String.Symbol -' ' Text +' ' Text.Whitespace 'name' Name.Variable '}' Punctuation -', ' Text +',' Text +' ' Text.Whitespace '}' Punctuation ')' Punctuation -'\n \n' Text +'\n \n' Text.Whitespace ';(gen-and-load-class ' Comment.Single -'\n' Text +'\n' Text.Whitespace '(' Punctuation 'clojure/gen-and-save-class' Name.Function -' \n ' Text +' \n ' Text.Whitespace '"/Users/rich/Downloads"' Literal.String -'\n ' Text +'\n ' Text.Whitespace "'fred.lucy.Ethel" Literal.String.Symbol -' \n ' Text +' \n ' Text.Whitespace ':extends' Literal.String.Symbol -' ' Text +' ' Text.Whitespace 'clojure.lang.Box' Name.Variable -' ' Text +' ' Text.Whitespace ';APersistentMap' Comment.Single -'\n ' Text +'\n ' Text.Whitespace ':implements' Literal.String.Symbol -' ' Text +' ' Text.Whitespace '[' Punctuation 'clojure.lang.IPersistentMap' Name.Variable ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace ':state' Literal.String.Symbol -' ' Text +' ' Text.Whitespace "'state" Literal.String.Symbol -'\n ' Text +'\n ' Text.Whitespace ';:constructors {[Object] [Object]}' Comment.Single -'\n ' Text +'\n ' Text.Whitespace ";:init 'init" Comment.Single -'\n ' Text +'\n ' Text.Whitespace ':main' Literal.String.Symbol -' ' Text +' ' Text.Whitespace 'true' Name.Variable -'\n ' Text +'\n ' Text.Whitespace ':factory' Literal.String.Symbol -' ' Text +' ' Text.Whitespace "'create" Literal.String.Symbol -'\n ' Text +'\n ' Text.Whitespace ':methods' Literal.String.Symbol -' ' Text +' ' Text.Whitespace '[' Punctuation '[' Punctuation "'foo" Literal.String.Symbol -' ' Text +' ' Text.Whitespace '[' Punctuation 'Object' Name.Variable ']' Punctuation -' ' Text +' ' Text.Whitespace 'Object' Name.Variable ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '[' Punctuation "'foo" Literal.String.Symbol -' ' Text +' ' Text.Whitespace '[' Punctuation ']' Punctuation -' ' Text +' ' Text.Whitespace 'Object' Name.Variable ']' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace ':exposes' Literal.String.Symbol -' ' Text +' ' Text.Whitespace '{' Punctuation "'val" Literal.String.Symbol -' ' Text +' ' Text.Whitespace '{' Punctuation ':get' Literal.String.Symbol -' ' Text +' ' Text.Whitespace "'getVal" Literal.String.Symbol -' ' Text +' ' Text.Whitespace ':set' Literal.String.Symbol -' ' Text +' ' Text.Whitespace "'setVal" Literal.String.Symbol '}' Punctuation '}' Punctuation ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace '(' Punctuation 'in-ns ' Name.Builtin "'fred.lucy.Ethel__2276" Literal.String.Symbol ')' Punctuation -'\n' Text +'\n' Text.Whitespace '(' Punctuation 'clojure/refer' Name.Function -' ' Text +' ' Text.Whitespace "'clojure" Literal.String.Symbol -' ' Text +' ' Text.Whitespace ':exclude' Literal.String.Symbol -' ' Text +' ' Text.Whitespace "'" Operator '(' Punctuation 'assoc ' Name.Builtin @@ -3770,205 +3773,205 @@ 'cons' Name.Variable ')' Punctuation ')' Punctuation -'\n' Text +'\n' Text.Whitespace '(' Punctuation 'defn ' Keyword.Declaration 'init' Name.Variable -' ' Text +' ' Text.Whitespace '[' Punctuation 'n' Name.Variable ']' Punctuation -' ' Text +' ' Text.Whitespace '[' Punctuation '[' Punctuation ']' Punctuation -' ' Text +' ' Text.Whitespace 'n' Name.Variable ']' Punctuation ')' Punctuation -'\n' Text +'\n' Text.Whitespace '(' Punctuation 'defn ' Keyword.Declaration 'foo' Name.Variable -' \n ' Text +' \n ' Text.Whitespace '(' Punctuation '[' Punctuation 'this' Name.Variable ']' Punctuation -' ' Text +' ' Text.Whitespace ':foo' Literal.String.Symbol ')' Punctuation -' \n ' Text +' \n ' Text.Whitespace '(' Punctuation '[' Punctuation 'this' Name.Variable -' ' Text +' ' Text.Whitespace 'x' Name.Variable ']' Punctuation -' ' Text +' ' Text.Whitespace 'x' Name.Variable ')' Punctuation ')' Punctuation -'\n' Text +'\n' Text.Whitespace '(' Punctuation 'defn ' Keyword.Declaration 'main' Name.Variable -' ' Text +' ' Text.Whitespace '[' Punctuation 'x' Name.Variable -' ' Text +' ' Text.Whitespace 'y' Name.Variable ']' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation 'println ' Name.Builtin 'x' Name.Variable -' ' Text +' ' Text.Whitespace 'y' Name.Variable ')' Punctuation ')' Punctuation -'\n' Text +'\n' Text.Whitespace '(' Punctuation 'in-ns ' Name.Builtin "'user" Literal.String.Symbol ')' Punctuation -'\n' Text +'\n' Text.Whitespace '(' Punctuation 'def ' Keyword 'ethel' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'new ' Keyword 'fred.lucy.Ethel__2276' Name.Variable -' ' Text +' ' Text.Whitespace '42' Literal.Number.Integer ')' Punctuation ')' Punctuation -'\n' Text +'\n' Text.Whitespace '(' Punctuation 'def ' Keyword 'ethel' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'fred.lucy.Ethel__2276.create' Name.Function -' ' Text +' ' Text.Whitespace '21' Literal.Number.Integer ')' Punctuation ')' Punctuation -'\n' Text +'\n' Text.Whitespace '(' Punctuation 'fred.lucy.Ethel__2276.main' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation 'into-array ' Name.Builtin '[' Punctuation '"lucy"' Literal.String -' ' Text +' ' Text.Whitespace '"ricky"' Literal.String ']' Punctuation ')' Punctuation ')' Punctuation -'\n' Text +'\n' Text.Whitespace '(' Punctuation '.state' Name.Function -' ' Text +' ' Text.Whitespace 'ethel' Name.Variable ')' Punctuation -'\n' Text +'\n' Text.Whitespace '(' Punctuation '.foo' Name.Function -' ' Text +' ' Text.Whitespace 'ethel' Name.Variable -' ' Text +' ' Text.Whitespace '7' Literal.Number.Integer ')' Punctuation -'\n' Text +'\n' Text.Whitespace '(' Punctuation '.foo' Name.Function -' ' Text +' ' Text.Whitespace 'ethel' Name.Variable ')' Punctuation -'\n' Text +'\n' Text.Whitespace '(' Punctuation '.getVal' Name.Function -' ' Text +' ' Text.Whitespace 'ethel' Name.Variable ')' Punctuation -'\n' Text +'\n' Text.Whitespace '(' Punctuation '.setVal' Name.Function -' ' Text +' ' Text.Whitespace 'ethel' Name.Variable -' ' Text +' ' Text.Whitespace '12' Literal.Number.Integer ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace '(' Punctuation 'gen-class' Name.Function -' ' Text +' ' Text.Whitespace 'org.clojure.MyComparator' Name.Variable -' ' Text +' ' Text.Whitespace ':implements' Literal.String.Symbol -' ' Text +' ' Text.Whitespace '[' Punctuation 'Comparator' Name.Variable ']' Punctuation ')' Punctuation -'\n' Text +'\n' Text.Whitespace '(' Punctuation 'in-ns ' Name.Builtin "'org.clojure.MyComparator" Literal.String.Symbol ')' Punctuation -'\n' Text +'\n' Text.Whitespace '(' Punctuation 'defn ' Keyword.Declaration 'compare' Name.Variable -' ' Text +' ' Text.Whitespace '[' Punctuation 'this' Name.Variable -' ' Text +' ' Text.Whitespace 'x' Name.Variable -' ' Text +' ' Text.Whitespace 'y' Name.Variable ']' Punctuation -' ' Text +' ' Text.Whitespace '...' Name.Variable ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace '(' Punctuation 'load-file ' Name.Builtin '"/Users/rich/dev/clojure/src/genclass.clj"' Literal.String ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace '(' Punctuation 'clojure/gen-and-save-class' Name.Function -' ' Text +' ' Text.Whitespace '"/Users/rich/dev/clojure/gen/"' Literal.String -' \n ' Text +' \n ' Text.Whitespace "'org.clojure.ClojureServlet" Literal.String.Symbol -' \n ' Text +' \n ' Text.Whitespace ':extends' Literal.String.Symbol -' ' Text +' ' Text.Whitespace 'javax.servlet.http.HttpServlet' Name.Variable ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace ')' Punctuation -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/clojurescript/core.cljs.output b/tests/examplefiles/clojurescript/core.cljs.output index cb5be696..15bc75b1 100644 --- a/tests/examplefiles/clojurescript/core.cljs.output +++ b/tests/examplefiles/clojurescript/core.cljs.output @@ -1,355 +1,355 @@ '(' Punctuation 'ns ' Keyword.Declaration 'bounder.core' Name.Variable -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation ':require' Literal.String.Symbol -' ' Text +' ' Text.Whitespace '[' Punctuation 'bounder.html' Name.Variable -' ' Text +' ' Text.Whitespace ':as' Literal.String.Symbol -' ' Text +' ' Text.Whitespace 'html' Name.Variable ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '[' Punctuation 'domina' Name.Variable -' ' Text +' ' Text.Whitespace ':refer' Literal.String.Symbol -' ' Text +' ' Text.Whitespace '[' Punctuation 'value' Name.Variable -' ' Text +' ' Text.Whitespace 'set-value!' Name.Variable -' ' Text +' ' Text.Whitespace 'single-node' Name.Variable ']' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '[' Punctuation 'domina.css' Name.Variable -' ' Text +' ' Text.Whitespace ':refer' Literal.String.Symbol -' ' Text +' ' Text.Whitespace '[' Punctuation 'sel' Name.Variable ']' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '[' Punctuation 'lowline.functions' Name.Variable -' ' Text +' ' Text.Whitespace ':refer' Literal.String.Symbol -' ' Text +' ' Text.Whitespace '[' Punctuation 'debounce' Name.Variable ']' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '[' Punctuation 'enfocus.core' Name.Variable -' ' Text +' ' Text.Whitespace ':refer' Literal.String.Symbol -' ' Text +' ' Text.Whitespace '[' Punctuation 'at' Name.Variable ']' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '[' Punctuation 'cljs.reader' Name.Variable -' ' Text +' ' Text.Whitespace ':as' Literal.String.Symbol -' ' Text +' ' Text.Whitespace 'reader' Name.Variable ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '[' Punctuation 'clojure.string' Name.Variable -' ' Text +' ' Text.Whitespace ':as' Literal.String.Symbol -' ' Text +' ' Text.Whitespace 's' Name.Variable ']' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation ':require-macros' Literal.String.Symbol -' ' Text +' ' Text.Whitespace '[' Punctuation 'enfocus.macros' Name.Variable -' ' Text +' ' Text.Whitespace ':as' Literal.String.Symbol -' ' Text +' ' Text.Whitespace 'em' Name.Variable ']' Punctuation ')' Punctuation ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace '(' Punctuation 'def ' Keyword 'filter-input' Name.Variable -' \n ' Text +' \n ' Text.Whitespace '(' Punctuation 'single-node' Name.Function -' \n ' Text +' \n ' Text.Whitespace '(' Punctuation 'sel' Name.Function -' ' Text +' ' Text.Whitespace '".search input"' Literal.String ')' Punctuation ')' Punctuation ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace '(' Punctuation 'defn ' Keyword.Declaration 'project-matches' Name.Variable -' ' Text +' ' Text.Whitespace '[' Punctuation 'query' Name.Variable -' ' Text +' ' Text.Whitespace 'project' Name.Variable ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'let ' Keyword '[' Punctuation 'words' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'cons ' Name.Builtin '(' Punctuation ':name' Literal.String.Symbol -' ' Text +' ' Text.Whitespace 'project' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'map ' Name.Builtin 'name ' Name.Builtin '(' Punctuation ':categories' Literal.String.Symbol -' ' Text +' ' Text.Whitespace 'project' Name.Variable ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'to-match' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '->>' Name.Function -' ' Text +' ' Text.Whitespace 'words' Name.Variable -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 's/join' Name.Function -' ' Text +' ' Text.Whitespace '""' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 's/lower-case' Name.Function ')' Punctuation ')' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation '<= ' Name.Builtin '0' Literal.Number.Integer -' ' Text +' ' Text.Whitespace '(' Punctuation '.indexOf' Name.Function -' ' Text +' ' Text.Whitespace 'to-match' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 's/lower-case' Name.Function -' ' Text +' ' Text.Whitespace 'query' Name.Variable ')' Punctuation ')' Punctuation ')' Punctuation ')' Punctuation ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace '(' Punctuation 'defn ' Keyword.Declaration 'apply-filter-for' Name.Variable -' ' Text +' ' Text.Whitespace '[' Punctuation 'projects' Name.Variable ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'let ' Keyword '[' Punctuation 'query' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'value' Name.Function -' ' Text +' ' Text.Whitespace 'filter-input' Name.Variable ')' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'html/render-projects' Name.Function -' \n ' Text +' \n ' Text.Whitespace '(' Punctuation 'filter ' Name.Builtin '(' Punctuation 'partial ' Name.Builtin 'project-matches' Name.Variable -' ' Text +' ' Text.Whitespace 'query' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'projects' Name.Variable ')' Punctuation ')' Punctuation ')' Punctuation ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace '(' Punctuation 'defn ' Keyword.Declaration 'filter-category' Name.Variable -' ' Text +' ' Text.Whitespace '[' Punctuation 'projects' Name.Variable -' ' Text +' ' Text.Whitespace 'evt' Name.Variable ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'let ' Keyword '[' Punctuation 'target' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation '.-currentTarget' Name.Function -' ' Text +' ' Text.Whitespace 'evt' Name.Variable ')' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'set-value!' Name.Function -' ' Text +' ' Text.Whitespace 'filter-input' Name.Variable -' \n ' Text +' \n ' Text.Whitespace '(' Punctuation '.-innerHTML' Name.Function -' ' Text +' ' Text.Whitespace 'target' Name.Variable ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'apply-filter-for' Name.Function -' ' Text +' ' Text.Whitespace 'projects' Name.Variable ')' Punctuation ')' Punctuation ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace '(' Punctuation 'defn ' Keyword.Declaration 'init-listeners' Name.Variable -' ' Text +' ' Text.Whitespace '[' Punctuation 'projects' Name.Variable ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'at' Name.Function -' ' Text +' ' Text.Whitespace 'js/document' Name.Variable -'\n ' Text +'\n ' Text.Whitespace '[' Punctuation '"input"' Literal.String ']' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation 'em/listen' Name.Function -'\n ' Text +'\n ' Text.Whitespace ':keyup' Literal.String.Symbol -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'debounce' Name.Function -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'partial ' Name.Builtin 'apply-filter-for' Name.Variable -' ' Text +' ' Text.Whitespace 'projects' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '500' Literal.Number.Integer ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '[' Punctuation '".category-links li"' Literal.String ']' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation 'em/listen' Name.Function -'\n ' Text +'\n ' Text.Whitespace ':click' Literal.String.Symbol -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'partial ' Name.Builtin 'filter-category' Name.Variable -' ' Text +' ' Text.Whitespace 'projects' Name.Variable ')' Punctuation ')' Punctuation ')' Punctuation ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace '(' Punctuation 'defn ' Keyword.Declaration 'init' Name.Variable -' ' Text +' ' Text.Whitespace '[' Punctuation 'projects-edn' Name.Variable ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'let ' Keyword '[' Punctuation 'projects' Name.Variable -' ' Text +' ' Text.Whitespace '(' Punctuation 'reader/read-string' Name.Function -' ' Text +' ' Text.Whitespace 'projects-edn' Name.Variable ')' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'init-listeners' Name.Function -' ' Text +' ' Text.Whitespace 'projects' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'html/render-projects' Name.Function -' ' Text +' ' Text.Whitespace 'projects' Name.Variable ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'html/loaded' Name.Function ')' Punctuation ')' Punctuation ')' Punctuation -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/gosu/example.gs.output b/tests/examplefiles/gosu/example.gs.output index adfa762d..b03b850c 100644 --- a/tests/examplefiles/gosu/example.gs.output +++ b/tests/examplefiles/gosu/example.gs.output @@ -1,349 +1,353 @@ 'package' Keyword.Namespace -' ' Text +' ' Text.Whitespace 'example' Name -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace 'uses' Keyword.Namespace -' ' Text +' ' Text.Whitespace 'java.util.*' Name.Namespace -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace 'uses' Keyword.Namespace -' ' Text +' ' Text.Whitespace 'java.io.File' Name.Namespace -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace 'class' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'Person' Name.Class -' ' Text +' ' Text.Whitespace 'extends' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'Contact' Name -' ' Text +' ' Text.Whitespace 'implements' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'IEmailable' Name -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace '_name' Name -' ' Text +' ' Text.Whitespace ':' Operator -' ' Text +' ' Text.Whitespace 'String' Name -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace '_age' Name -' ' Text +' ' Text.Whitespace ':' Operator -' ' Text +' ' Text.Whitespace 'Integer' Name -' ' Text +' ' Text.Whitespace 'as' Keyword -' ' Text +' ' Text.Whitespace 'Age' Name -' ' Text -'\n' Text +' ' Text.Whitespace +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace '_relationship' Name -' ' Text +' ' Text.Whitespace ':' Operator -' ' Text +' ' Text.Whitespace 'Relationship' Name -' ' Text +' ' Text.Whitespace 'as' Keyword -' ' Text +' ' Text.Whitespace 'readonly' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'RelationshipOfPerson' Name -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'delegate' Keyword.Declaration -' ' Text +' ' Text.Whitespace '_emailHelper' Name -' ' Text +' ' Text.Whitespace 'represents' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'IEmailable' Name -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'enum' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'Relationship' Name.Class -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'FRIEND' Name ',' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'FAMILY' Name ',' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'BUSINESS_CONTACT' Name -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '// Map of names to people\n' Comment.Single -' ' Text +' ' Text.Whitespace 'static' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'ALL_PEOPLE' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'new' Keyword -' ' Text +' ' Text.Whitespace 'HashMap' Name '<' Operator 'String' Name ',' Operator -' ' Text +' ' Text.Whitespace 'Person' Name '>' Operator '(' Operator ')' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '/* Constructs a new Person */' Comment.Multiline -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'construct' Keyword.Declaration '(' Operator -' ' Text +' ' Text.Whitespace 'name' Name -' ' Text +' ' Text.Whitespace ':' Operator -' ' Text +' ' Text.Whitespace 'String' Name ',' Operator -' ' Text +' ' Text.Whitespace 'age' Name -' ' Text +' ' Text.Whitespace ':' Operator -' ' Text +' ' Text.Whitespace 'Integer' Name ',' Operator -' ' Text +' ' Text.Whitespace 'relationship' Name -' ' Text +' ' Text.Whitespace ':' Operator -' ' Text +' ' Text.Whitespace 'Relationship' Name -' ' Text +' ' Text.Whitespace ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '_name' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'name' Name -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '_age' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'age' Name -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '_relationship' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'relationship' Name -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '_emailHelper' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'new' Keyword -' ' Text +' ' Text.Whitespace 'EmailHelper' Name '(' Operator -' ' Text +' ' Text.Whitespace 'this' Keyword -' ' Text +' ' Text.Whitespace ')' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text -'property get' Keyword.Declaration -' ' Text +' ' Text.Whitespace +'property' Keyword.Declaration +' ' Text.Whitespace +'get' Keyword.Declaration +' ' Text.Whitespace 'Name' Name.Function '(' Operator ')' Operator ':' Operator 'String' Name.Attribute '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace '_name' Name -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text -'property set' Keyword.Declaration -' ' Text +' ' Text.Whitespace +'property' Keyword.Declaration +' ' Text.Whitespace +'set' Keyword.Declaration +' ' Text.Whitespace 'Name' Name.Function '(' Operator 'name' Name -' ' Text +' ' Text.Whitespace ':' Operator -' ' Text +' ' Text.Whitespace 'String' Name ')' Operator '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '_name' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'name' Name -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '/* Implement IEmailable#getEmailName() */' Comment.Multiline -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'override' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'getEmailName' Name.Function '(' Operator ')' Operator ':' Operator 'String' Name.Attribute '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'Name' Name -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'incrementAge' Name.Function '(' Operator ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '_age' Name '+' Operator '+' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '@Deprecated' Name.Decorator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'printPersonInfo' Name.Function '(' Operator ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'print' Name '(' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String 'P' Literal.String 'e' Literal.String @@ -398,33 +402,33 @@ ' ' Literal.String '}' Literal.String '"' Literal.String -' ' Text +' ' Text.Whitespace ')' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'static' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'addPerson' Name.Function '(' Operator 'p' Name -' ' Text +' ' Text.Whitespace ':' Operator -' ' Text +' ' Text.Whitespace 'Person' Name ')' Operator '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'if' Keyword '(' Operator 'ALL_PEOPLE' Name @@ -436,18 +440,18 @@ 'Name' Name.Attribute ')' Operator ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'throw' Keyword -' ' Text +' ' Text.Whitespace 'new' Keyword -' ' Text +' ' Text.Whitespace 'IllegalArgumentException' Name.Function '(' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String 'T' Literal.String 'h' Literal.String @@ -489,252 +493,252 @@ "'" Literal.String '.' Literal.String '"' Literal.String -' ' Text +' ' Text.Whitespace ')' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'ALL_PEOPLE' Name '[' Operator 'p' Name '.' Operator 'Name' Name.Attribute ']' Operator -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'p' Name -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'static' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'addAllPeople' Name.Function '(' Operator -' ' Text +' ' Text.Whitespace 'contacts' Name -' ' Text +' ' Text.Whitespace ':' Operator -' ' Text +' ' Text.Whitespace 'List' Name '<' Operator 'Contact' Name '>' Operator -' ' Text +' ' Text.Whitespace ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'for' Keyword '(' Operator -' ' Text +' ' Text.Whitespace 'contact' Name -' ' Text +' ' Text.Whitespace 'in' Keyword -' ' Text +' ' Text.Whitespace 'contacts' Name -' ' Text +' ' Text.Whitespace ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'if' Keyword '(' Operator -' ' Text +' ' Text.Whitespace 'contact' Name -' ' Text +' ' Text.Whitespace 'typeis' Keyword -' ' Text +' ' Text.Whitespace 'Person' Name -' ' Text +' ' Text.Whitespace 'and' Name -' ' Text +' ' Text.Whitespace 'not' Name -' ' Text +' ' Text.Whitespace 'ALL_PEOPLE' Name '.' Operator 'containsKey' Name.Attribute '(' Operator -' ' Text +' ' Text.Whitespace 'contact' Name '.' Operator 'Name' Name.Attribute -' ' Text +' ' Text.Whitespace ')' Operator ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'addPerson' Name '(' Operator -' ' Text +' ' Text.Whitespace 'contact' Name -' ' Text +' ' Text.Whitespace ')' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'static' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'getAllPeopleOlderThanNOrderedByName' Name.Function '(' Operator -' ' Text +' ' Text.Whitespace 'age' Name -' ' Text +' ' Text.Whitespace ':' Operator -' ' Text +' ' Text.Whitespace 'int' Keyword.Type -' ' Text +' ' Text.Whitespace ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'allPeople' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'ALL_PEOPLE' Name '.' Operator 'Values' Name.Attribute -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'allPeople' Name '.' Operator 'where' Name.Attribute '(' Operator -' ' Text +' ' Text.Whitespace '\\' Operator -' ' Text +' ' Text.Whitespace 'p' Name -' ' Text +' ' Text.Whitespace '-' Operator '>' Operator -' ' Text +' ' Text.Whitespace 'p' Name '.' Operator 'Age' Name.Attribute -' ' Text +' ' Text.Whitespace '>' Operator -' ' Text +' ' Text.Whitespace 'age' Name -' ' Text +' ' Text.Whitespace ')' Operator '.' Operator 'orderBy' Name.Attribute '(' Operator -' ' Text +' ' Text.Whitespace '\\' Operator -' ' Text +' ' Text.Whitespace 'p' Name -' ' Text +' ' Text.Whitespace '-' Operator '>' Operator -' ' Text +' ' Text.Whitespace 'p' Name '.' Operator 'Name' Name.Attribute -' ' Text +' ' Text.Whitespace ')' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'static' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'loadPersonFromDB' Name.Function '(' Operator -' ' Text +' ' Text.Whitespace 'id' Name -' ' Text +' ' Text.Whitespace ':' Operator -' ' Text +' ' Text.Whitespace 'Integer' Name -' ' Text +' ' Text.Whitespace ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'using' Keyword '(' Operator -' ' Text +' ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'conn' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'DBConnectionManager' Name '.' Operator 'getConnection' Name.Attribute '(' Operator ')' Operator ',' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'stmt' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'conn' Name '.' Operator 'prepareStatement' Name.Attribute '(' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String 'S' Literal.String 'E' Literal.String @@ -791,108 +795,108 @@ '?' Literal.String '"' Literal.String ')' Operator -' ' Text +' ' Text.Whitespace ')' Operator '{' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'stmt' Name '.' Operator 'setInt' Name.Attribute '(' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ',' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer -' ' Text +' ' Text.Whitespace ')' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'result' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'stmt' Name '.' Operator 'executeQuery' Name.Attribute '(' Operator ')' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'if' Keyword '(' Operator -' ' Text +' ' Text.Whitespace 'result' Name '.' Operator 'next' Name.Attribute '(' Operator ')' Operator -' ' Text +' ' Text.Whitespace ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'addPerson' Name '(' Operator -' ' Text +' ' Text.Whitespace 'new' Keyword -' ' Text +' ' Text.Whitespace 'Person' Name '(' Operator -' ' Text +' ' Text.Whitespace 'result' Name '.' Operator 'getString' Name.Attribute '(' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String 'n' Literal.String 'a' Literal.String 'm' Literal.String 'e' Literal.String '"' Literal.String -' ' Text +' ' Text.Whitespace ')' Operator ',' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'result' Name '.' Operator 'getInt' Name.Attribute '(' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String 'a' Literal.String 'g' Literal.String 'e' Literal.String '"' Literal.String -' ' Text +' ' Text.Whitespace ')' Operator ',' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'Relationship' Name '.' Operator 'valueOf' Name.Attribute '(' Operator -' ' Text +' ' Text.Whitespace 'result' Name '.' Operator 'getString' Name.Attribute '(' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String 'r' Literal.String 'e' Literal.String @@ -907,200 +911,200 @@ 'i' Literal.String 'p' Literal.String '"' Literal.String -' ' Text +' ' Text.Whitespace ')' Operator -' ' Text +' ' Text.Whitespace ')' Operator -' ' Text +' ' Text.Whitespace ')' Operator -' ' Text +' ' Text.Whitespace ')' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '/* Loads in people from a CSV */' Comment.Multiline -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'static' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'loadFromFile' Name.Function '(' Operator -' ' Text +' ' Text.Whitespace 'file' Name -' ' Text +' ' Text.Whitespace ':' Operator -' ' Text +' ' Text.Whitespace 'File' Name -' ' Text +' ' Text.Whitespace ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'file' Name '.' Operator 'eachLine' Name.Attribute '(' Operator -' ' Text +' ' Text.Whitespace '\\' Operator -' ' Text +' ' Text.Whitespace 'line' Name -' ' Text +' ' Text.Whitespace '-' Operator '>' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'if' Keyword '(' Operator -' ' Text +' ' Text.Whitespace 'line' Name '.' Operator 'HasContent' Name.Attribute -' ' Text +' ' Text.Whitespace ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'addPerson' Name '(' Operator -' ' Text +' ' Text.Whitespace 'line' Name '.' Operator 'toPerson' Name.Attribute '(' Operator ')' Operator -' ' Text +' ' Text.Whitespace ')' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator ')' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '/* Save people to a CSV */' Comment.Multiline -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'static' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'function' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'saveToFile' Name.Function '(' Operator -' ' Text +' ' Text.Whitespace 'file' Name -' ' Text +' ' Text.Whitespace ':' Operator -' ' Text +' ' Text.Whitespace 'File' Name -' ' Text +' ' Text.Whitespace ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'using' Keyword '(' Operator -' ' Text +' ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'writer' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'new' Keyword -' ' Text +' ' Text.Whitespace 'FileWriter' Name '(' Operator -' ' Text +' ' Text.Whitespace 'file' Name -' ' Text +' ' Text.Whitespace ')' Operator -' ' Text +' ' Text.Whitespace ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'print' Name '(' Operator -' ' Text +' ' Text.Whitespace 'PersonCSVTemplate' Name '.' Operator 'renderToString' Name.Attribute '(' Operator -' ' Text +' ' Text.Whitespace 'ALL_PEOPLE' Name '.' Operator 'Values' Name.Attribute -' ' Text +' ' Text.Whitespace ')' Operator -' ' Text +' ' Text.Whitespace ')' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'PersonCSVTemplate' Name '.' Operator 'render' Name.Attribute '(' Operator -' ' Text +' ' Text.Whitespace 'writer' Name ',' Operator -' ' Text +' ' Text.Whitespace 'ALL_PEOPLE' Name '.' Operator 'Values' Name.Attribute -' ' Text +' ' Text.Whitespace ')' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/groovy/example.groovy.output b/tests/examplefiles/groovy/example.groovy.output index 9bf354bc..6aef35d9 100644 --- a/tests/examplefiles/groovy/example.groovy.output +++ b/tests/examplefiles/groovy/example.groovy.output @@ -1,7 +1,7 @@ '#!/usr/bin/env groovy' Comment.Preproc -'\n' Text +'\n' Text.Whitespace 'println' Name -' ' Text +' ' Text.Whitespace '"Hello World"' Literal.String.Double -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/groovy/quoted.groovy.output b/tests/examplefiles/groovy/quoted.groovy.output index ac9c4ce1..02cf836e 100644 --- a/tests/examplefiles/groovy/quoted.groovy.output +++ b/tests/examplefiles/groovy/quoted.groovy.output @@ -1,28 +1,28 @@ 'def' Keyword.Type -' ' Text +' ' Text.Whitespace '"long function name"' Name.Function '(' Operator 'i' Name ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -' ' Text +' ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'i' Name -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace 'assert' Keyword -' ' Text +' ' Text.Whitespace "'long function name'" Literal.String.Single '(' Operator '1' Literal.Number.Integer ')' Operator -' ' Text +' ' Text.Whitespace '=' Operator '=' Operator -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/groovy/test.gradle.output b/tests/examplefiles/groovy/test.gradle.output index 9504f441..09d461f7 100644 --- a/tests/examplefiles/groovy/test.gradle.output +++ b/tests/examplefiles/groovy/test.gradle.output @@ -1,109 +1,109 @@ 'apply' Name -' ' Text +' ' Text.Whitespace 'plugin:' Name.Label -' ' Text +' ' Text.Whitespace "'java'" Literal.String.Single -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace 'repositories' Name -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'mavenCentral' Name '(' Operator ')' Operator -'\n' Text +'\n' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace 'dependencies' Name -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'testCompile' Name -' ' Text +' ' Text.Whitespace "'junit:junit:4.12'" Literal.String.Single -'\n' Text +'\n' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace 'task' Name -' ' Text +' ' Text.Whitespace 'sayHello' Name -' ' Text +' ' Text.Whitespace '<' Operator '<' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'def' Keyword.Type -' ' Text +' ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'SomeClass' Name '.' Operator 'worldString' Name.Attribute -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'println' Name -' ' Text +' ' Text.Whitespace '"Hello ${x}"' Literal.String.Double -'\n' Text +'\n' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace 'private' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'class' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'SomeClass' Name.Class -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'public' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'static' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'String' Name -' ' Text +' ' Text.Whitespace 'getWorldString' Name '(' Operator ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace '"world"' Literal.String.Double -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/groovy/test.groovy.output b/tests/examplefiles/groovy/test.groovy.output index bcb15b3a..b292d871 100644 --- a/tests/examplefiles/groovy/test.groovy.output +++ b/tests/examplefiles/groovy/test.groovy.output @@ -1,9 +1,10 @@ -'// This source code comes from http://www.odelia-technologies.com/node/200\n' Comment.Single +'// This source code comes from http://www.odelia-technologies.com/node/200' Comment.Single +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace 'package' Keyword.Namespace -' ' Text +' ' Text.Whitespace 'com' Name '.' Operator 'odelia' Name.Attribute @@ -11,124 +12,124 @@ 'groovy' Name.Attribute '.' Operator 'simpleworkflow' Name.Attribute -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace 'class' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'SimpleWorkflowEngine' Name.Class -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'def' Keyword.Type -' ' Text +' ' Text.Whitespace 'workflowMap' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '[' Operator ':' Operator ']' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'def' Keyword.Type -' ' Text +' ' Text.Whitespace 'context' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '[' Operator ':' Operator ']' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'def' Keyword.Type -' ' Text +' ' Text.Whitespace 'beforeActivityName' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace "'beforeActivity'" Literal.String.Single -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'def' Keyword.Type -' ' Text +' ' Text.Whitespace 'afterActivityName' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace "'afterActivity'" Literal.String.Single -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'SimpleWorkflowEngine' Name '(' Operator 'workflow' Name ',' Operator -' ' Text +' ' Text.Whitespace 'context' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '[' Operator ':' Operator ']' Operator ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'this' Keyword '.' Operator 'context' Name.Attribute -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'context' Name -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'parseWorkflow' Name '(' Operator 'workflow' Name ')' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'def' Keyword.Type -' ' Text +' ' Text.Whitespace 'parseWorkflow' Name.Function '(' Operator 'workflow' Name ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'workflowMap' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'new' Keyword -' ' Text +' ' Text.Whitespace 'WorkflowParser' Name '(' Operator ')' Operator @@ -137,38 +138,38 @@ '(' Operator 'workflow' Name ')' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'def' Keyword.Type -' ' Text +' ' Text.Whitespace 'getActivityValue' Name.Function '(' Operator 'activity' Name ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'assert' Keyword -' ' Text +' ' Text.Whitespace 'activity' Name -' ' Text +' ' Text.Whitespace 'instanceof' Keyword -' ' Text +' ' Text.Whitespace 'String' Name -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '(' Operator '!' Operator 'workflowMap' Name @@ -176,60 +177,60 @@ 'activity' Name ']' Operator ')' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'throw' Keyword -' ' Text +' ' Text.Whitespace 'new' Keyword -' ' Text +' ' Text.Whitespace 'RuntimeException' Name '(' Operator '"$activity activity doesn\'t exist"' Literal.String.Double ')' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'workflowMap' Name '[' Operator 'activity' Name ']' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'def' Keyword.Type -' ' Text +' ' Text.Whitespace 'execute' Name.Function '(' Operator 'activity' Name ',' Operator -' ' Text +' ' Text.Whitespace 'pause' Name ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '(' Operator 'workflowMap' Name '[' Operator 'beforeActivityName' Name ']' Operator ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'getActivityValue' Name '(' Operator 'beforeActivityName' Name @@ -237,93 +238,94 @@ '(' Operator 'context' Name ',' Operator -' ' Text +' ' Text.Whitespace 'activity' Name ')' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'def' Keyword.Type -' ' Text +' ' Text.Whitespace 'activityValue' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'getActivityValue' Name '(' Operator 'activity' Name ')' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text -'// Determine the next activity to execute\n' Comment.Single +' ' Text.Whitespace +'// Determine the next activity to execute' Comment.Single +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'def' Keyword.Type -' ' Text +' ' Text.Whitespace 'nextActivity' Name -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'switch' Keyword -' ' Text +' ' Text.Whitespace '(' Operator 'activityValue' Name ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'String:' Name.Label -' ' Text +' ' Text.Whitespace 'nextActivity' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'activityValue' Name ';' Operator -' ' Text +' ' Text.Whitespace 'break' Keyword -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'Closure:' Name.Label -' ' Text +' ' Text.Whitespace 'nextActivity' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'activityValue' Name '(' Operator 'context' Name ')' Operator ';' Operator -' ' Text +' ' Text.Whitespace 'break' Keyword -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'Class:' Name.Label -' ' Text +' ' Text.Whitespace 'nextActivity' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'activityValue' Name '.' Operator 'newInstance' Name.Attribute @@ -332,28 +334,28 @@ '(' Operator 'context' Name ')' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '(' Operator 'workflowMap' Name '[' Operator 'afterActivityName' Name ']' Operator ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'getActivityValue' Name '(' Operator 'afterActivityName' Name @@ -361,166 +363,166 @@ '(' Operator 'context' Name ',' Operator -' ' Text +' ' Text.Whitespace 'activity' Name ',' Operator -' ' Text +' ' Text.Whitespace 'nextActivity' Name ')' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '(' Operator '!' Operator 'pause' Name -' ' Text +' ' Text.Whitespace '&' Operator '&' Operator -' ' Text +' ' Text.Whitespace 'nextActivity' Name ')' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'call' Name '(' Operator 'nextActivity' Name ')' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'else' Keyword -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'nextActivity' Name -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'def' Keyword.Type -' ' Text +' ' Text.Whitespace 'call' Name.Function '(' Operator 'activity' Name ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'execute' Name '(' Operator 'activity' Name ',' Operator -' ' Text +' ' Text.Whitespace 'false' Keyword.Constant ')' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'def' Keyword.Type -' ' Text +' ' Text.Whitespace 'nextActivity' Name.Function '(' Operator 'activity' Name ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'execute' Name '(' Operator 'activity' Name ',' Operator -' ' Text +' ' Text.Whitespace 'true' Keyword.Constant ')' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'static' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'void' Keyword.Type -' ' Text +' ' Text.Whitespace 'main' Name.Function '(' Operator 'String' Name '[' Operator ']' Operator -' ' Text +' ' Text.Whitespace 'args' Name ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '(' Operator 'args' Name '.' Operator 'size' Name.Attribute '(' Operator ')' Operator -' ' Text +' ' Text.Whitespace '!' Operator '=' Operator -' ' Text +' ' Text.Whitespace '2' Literal.Number.Integer ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'println' Name -' ' Text +' ' Text.Whitespace "'Usage: com.odelia.groovy.simpleworkflow.SimpleWorkflowEngine <dsl_filename> <activity_name>'" Literal.String.Single -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'return' Keyword -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'SimpleWorkflowEngine' Name '.' Operator 'newInstance' Name.Attribute '(' Operator 'new' Keyword -' ' Text +' ' Text.Whitespace 'File' Name '(' Operator 'args' Name @@ -535,241 +537,241 @@ '1' Literal.Number.Integer ']' Operator ')' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace 'private' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'class' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'WorkflowParser' Name.Class -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'def' Keyword.Type -' ' Text +' ' Text.Whitespace 'map' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '[' Operator ':' Operator ']' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'def' Keyword.Type -' ' Text +' ' Text.Whitespace 'methodMissing' Name.Function '(' Operator 'String' Name -' ' Text +' ' Text.Whitespace 'name' Name ',' Operator -' ' Text +' ' Text.Whitespace 'args' Name ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'map' Name '[' Operator 'name' Name ']' Operator -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'args' Name '[' Operator '0' Literal.Number.Integer ']' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'def' Keyword.Type -' ' Text +' ' Text.Whitespace 'parse' Name.Function '(' Operator 'Closure' Name -' ' Text +' ' Text.Whitespace 'wf' Name ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'wf' Name '.' Operator 'delegate' Name.Attribute -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'this' Keyword -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'wf' Name '.' Operator 'resolveStrategy' Name.Attribute -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'Closure' Name '.' Operator 'DELEGATE_FIRST' Name.Attribute -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'wf' Name '(' Operator ')' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'map' Name -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'def' Keyword.Type -' ' Text +' ' Text.Whitespace 'workflow' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '{' Operator -' ' Text +' ' Text.Whitespace 'it' Name -' ' Text +' ' Text.Whitespace '-' Operator '>' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'it' Name '.' Operator 'delegate' Name.Attribute -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'this' Keyword -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'it' Name '.' Operator 'resolveStrategy' Name.Attribute -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'Closure' Name '.' Operator 'DELEGATE_FIRST' Name.Attribute -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'it' Name '(' Operator ')' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'def' Keyword.Type -' ' Text +' ' Text.Whitespace 'parse' Name.Function '(' Operator 'File' Name -' ' Text +' ' Text.Whitespace 'workflowDef' Name ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'def' Keyword.Type -' ' Text +' ' Text.Whitespace 'binding' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'new' Keyword -' ' Text +' ' Text.Whitespace 'Binding' Name '(' Operator '[' Operator 'workflow:' Name.Label -' ' Text +' ' Text.Whitespace 'workflow' Name ']' Operator ')' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'def' Keyword.Type -' ' Text +' ' Text.Whitespace 'shell' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'new' Keyword -' ' Text +' ' Text.Whitespace 'GroovyShell' Name '(' Operator 'binding' Name ')' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'shell' Name '.' Operator 'evaluate' Name.Attribute '(' Operator 'workflowDef' Name ')' Operator -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'map' Name -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace '}' Operator -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/gst/example.gst.output b/tests/examplefiles/gst/example.gst.output index 0c0c3b79..fd1912a7 100644 --- a/tests/examplefiles/gst/example.gst.output +++ b/tests/examplefiles/gst/example.gst.output @@ -6,39 +6,39 @@ '<%@ ' Operator 'params' Name.Decorator '(' Operator -' ' Text +' ' Text.Whitespace 'users' Name -' ' Text +' ' Text.Whitespace ':' Operator -' ' Text +' ' Text.Whitespace 'Collection' Name -' ' Text +' ' Text.Whitespace '<' Operator 'User' Name '>' Operator -' ' Text +' ' Text.Whitespace ')' Operator -' ' Text +' ' Text.Whitespace '%>' Operator '\n' Literal.String '\n' Literal.String '<%' Operator -' ' Text +' ' Text.Whitespace 'for' Keyword '(' Operator -' ' Text +' ' Text.Whitespace 'user' Name -' ' Text +' ' Text.Whitespace 'in' Keyword -' ' Text +' ' Text.Whitespace 'users' Name -' ' Text +' ' Text.Whitespace ')' Operator -' ' Text +' ' Text.Whitespace '{' Operator -' ' Text +' ' Text.Whitespace '%>' Operator '\n' Literal.String @@ -66,8 +66,8 @@ ' ' Literal.String ' ' Literal.String '<%' Operator -' ' Text +' ' Text.Whitespace '}' Operator -' ' Text +' ' Text.Whitespace '%>' Operator '\n' Literal.String diff --git a/tests/examplefiles/ioke/intro.ik.output b/tests/examplefiles/ioke/intro.ik.output index 6caf8028..f2cdf50f 100644 --- a/tests/examplefiles/ioke/intro.ik.output +++ b/tests/examplefiles/ioke/intro.ik.output @@ -1,117 +1,117 @@ '#!/usr/bin/ioke\n' Comment -'\n' Text +'\n' Text.Whitespace 'Ioke' Name.Variable -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'LanguageExperiment' Name.Class -' ' Text +' ' Text.Whitespace 'with' Keyword.Reserved '(' Punctuation -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'goal:' Literal.String.Other -' ' Text +' ' Text.Whitespace ':expressiveness' Literal.String.Symbol ',' Punctuation -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'data:' Literal.String.Other -' ' Text +' ' Text.Whitespace 'as' Name '(' Punctuation 'code' Name ')' Punctuation ',' Punctuation -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'code:' Literal.String.Other -' ' Text +' ' Text.Whitespace 'as' Name '(' Punctuation 'data' Name ')' Punctuation ',' Punctuation -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'features:' Literal.String.Other -' ' Text +' ' Text.Whitespace '[' Punctuation -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace ':dynamic' Literal.String.Symbol ',' Punctuation -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace ':object_oriented' Literal.String.Symbol ',' Punctuation -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace ':prototype_based' Literal.String.Symbol ',' Punctuation -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace ':homoiconic' Literal.String.Symbol ',' Punctuation -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace ':macros' Literal.String.Symbol -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace ']' Punctuation ',' Punctuation -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'runtimes:' Literal.String.Other '(' Punctuation 'JVM' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'CLR' Name.Class ')' Punctuation ',' Punctuation -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'inspirations:' Literal.String.Other -' ' Text +' ' Text.Whitespace 'set' Keyword.Reserved '(' Punctuation 'Io' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'Smalltalk' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'Ruby' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'Lisp' Name.Class ')' Punctuation -'\n' Text +'\n' Text.Whitespace ')' Punctuation -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace 'hello' Name.Variable -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'method' Name.Function '(' Punctuation '"' Literal.String.Doc @@ -151,14 +151,14 @@ '!' Literal.String.Doc '"' Literal.String.Doc ',' Punctuation -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'name' Name ',' Punctuation -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '"' Literal.String 'h' Literal.String 'e' Literal.String @@ -172,42 +172,42 @@ '}' Punctuation '!' Literal.String '"' Literal.String -' ' Text +' ' Text.Whitespace 'println' Keyword ')' Punctuation -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace 'Ioke' Name.Class -' ' Text +' ' Text.Whitespace 'inspirations' Name -' ' Text +' ' Text.Whitespace 'select' Name '(' Punctuation -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'features' Name -' ' Text +' ' Text.Whitespace 'include?' Name '(' Punctuation ':object_oriented' Literal.String.Symbol ')' Punctuation -'\n' Text +'\n' Text.Whitespace ')' Punctuation -' ' Text +' ' Text.Whitespace 'each' Name '(' Punctuation 'x' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'hello' Name '(' Punctuation 'x' Name -' ' Text +' ' Text.Whitespace 'name' Name ')' Punctuation ')' Punctuation -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/scala/char.scala.output b/tests/examplefiles/scala/char.scala.output index fff499fc..91e45b90 100644 --- a/tests/examplefiles/scala/char.scala.output +++ b/tests/examplefiles/scala/char.scala.output @@ -1,13 +1,13 @@ "'symbol" Literal.String.Symbol -'\n' Text +'\n' Text.Whitespace "'a'" Literal.String.Char -'\n' Text +'\n' Text.Whitespace "'\\u1234'" Literal.String.Char -'\n' Text +'\n' Text.Whitespace "'" Literal.String.Char '\\n' Literal.String.Escape "'" Literal.String.Char -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/scala/comments.scala.output b/tests/examplefiles/scala/comments.scala.output index ccf7c077..a14f13ef 100644 --- a/tests/examplefiles/scala/comments.scala.output +++ b/tests/examplefiles/scala/comments.scala.output @@ -3,14 +3,14 @@ '/*' Comment.Multiline ' Comment block ' Comment.Multiline '*/' Comment.Multiline -'\n' Text +'\n' Text.Whitespace '/*' Comment.Multiline ' Multi-line \n ' Comment.Multiline '*' Comment.Multiline ' comment block\n ' Comment.Multiline '*/' Comment.Multiline -'\n' Text +'\n' Text.Whitespace '/*' Comment.Multiline ' ' Comment.Multiline @@ -27,7 +27,7 @@ '*/' Comment.Multiline ' ' Comment.Multiline '*/' Comment.Multiline -'\n' Text +'\n' Text.Whitespace '/*' Comment.Multiline '*' Comment.Multiline @@ -44,7 +44,7 @@ ' ' Comment.Multiline '*' Comment.Multiline '*/' Comment.Multiline -'\n' Text +'\n' Text.Whitespace '// /* Commented-out comment block\n' Comment.Single diff --git a/tests/examplefiles/scala/constants.scala.output b/tests/examplefiles/scala/constants.scala.output index 98c0b6c0..cd2a761d 100644 --- a/tests/examplefiles/scala/constants.scala.output +++ b/tests/examplefiles/scala/constants.scala.output @@ -1,176 +1,176 @@ 'true' Keyword.Constant -' ' Text +' ' Text.Whitespace 'false' Keyword.Constant -' ' Text +' ' Text.Whitespace 'null' Keyword.Constant -'\n' Text +'\n' Text.Whitespace '1' Literal.Number.Integer -' ' Text +' ' Text.Whitespace '2' Literal.Number.Integer -' ' Text +' ' Text.Whitespace '3' Literal.Number.Integer -' ' Text +' ' Text.Whitespace '4' Literal.Number.Integer -'\n' Text +'\n' Text.Whitespace '1L' Literal.Number.Integer.Long -' ' Text +' ' Text.Whitespace '1l' Literal.Number.Integer.Long -' ' Text +' ' Text.Whitespace '10L' Literal.Number.Integer.Long -' ' Text +' ' Text.Whitespace '12123123L' Literal.Number.Integer.Long -'\n' Text +'\n' Text.Whitespace '3.0' Literal.Number.Float -' ' Text +' ' Text.Whitespace '12.345' Literal.Number.Float -'\n' Text +'\n' Text.Whitespace '3f' Literal.Number.Float -' ' Text +' ' Text.Whitespace '3.0f' Literal.Number.Float -' ' Text +' ' Text.Whitespace '3F' Literal.Number.Float -' ' Text +' ' Text.Whitespace '3.0F' Literal.Number.Float -'\n' Text +'\n' Text.Whitespace '3d' Literal.Number.Float -' ' Text +' ' Text.Whitespace '3.0d' Literal.Number.Float -' ' Text +' ' Text.Whitespace '3D' Literal.Number.Float -' ' Text +' ' Text.Whitespace '3.0D' Literal.Number.Float -'\n' Text +'\n' Text.Whitespace '110_222_795_799.99' Literal.Number.Float -' ' Text +' ' Text.Whitespace '110.9499_999' Literal.Number.Float -' ' Text +' ' Text.Whitespace '2_000.343_999e561_100' Literal.Number.Float -'\n' Text +'\n' Text.Whitespace '1e12' Literal.Number.Float -' ' Text +' ' Text.Whitespace '1e+34' Literal.Number.Float -' ' Text +' ' Text.Whitespace '1e-56' Literal.Number.Float -' ' Text +' ' Text.Whitespace '1e12f' Literal.Number.Float -' ' Text +' ' Text.Whitespace '1e+34f' Literal.Number.Float -' ' Text +' ' Text.Whitespace '1e-56f' Literal.Number.Float -' ' Text +' ' Text.Whitespace '1e12d' Literal.Number.Float -' ' Text +' ' Text.Whitespace '1e+34d' Literal.Number.Float -' ' Text +' ' Text.Whitespace '1e-56d' Literal.Number.Float -'\n' Text +'\n' Text.Whitespace '1E12' Literal.Number.Float -' ' Text +' ' Text.Whitespace '1E+34' Literal.Number.Float -' ' Text +' ' Text.Whitespace '1E-56' Literal.Number.Float -' ' Text +' ' Text.Whitespace '1E12f' Literal.Number.Float -' ' Text +' ' Text.Whitespace '1E+34f' Literal.Number.Float -' ' Text +' ' Text.Whitespace '1E-56f' Literal.Number.Float -' ' Text +' ' Text.Whitespace '1E12d' Literal.Number.Float -' ' Text +' ' Text.Whitespace '1E+34d' Literal.Number.Float -' ' Text +' ' Text.Whitespace '1E-56d' Literal.Number.Float -'\n' Text +'\n' Text.Whitespace '.1e12' Literal.Number.Float -' ' Text +' ' Text.Whitespace '.1e+34' Literal.Number.Float -' ' Text +' ' Text.Whitespace '.1e-56' Literal.Number.Float -' ' Text +' ' Text.Whitespace '.1e12f' Literal.Number.Float -' ' Text +' ' Text.Whitespace '.1e+34f' Literal.Number.Float -' ' Text +' ' Text.Whitespace '.1e-56f' Literal.Number.Float -' ' Text +' ' Text.Whitespace '.1e12d' Literal.Number.Float -' ' Text +' ' Text.Whitespace '.1e+34d' Literal.Number.Float -' ' Text +' ' Text.Whitespace '.1e-56d' Literal.Number.Float -'\n' Text +'\n' Text.Whitespace '.1E12' Literal.Number.Float -' ' Text +' ' Text.Whitespace '.1E+34' Literal.Number.Float -' ' Text +' ' Text.Whitespace '.1E-56' Literal.Number.Float -' ' Text +' ' Text.Whitespace '.1E12f' Literal.Number.Float -' ' Text +' ' Text.Whitespace '.1E+34f' Literal.Number.Float -' ' Text +' ' Text.Whitespace '.1E-56f' Literal.Number.Float -' ' Text +' ' Text.Whitespace '.1E12d' Literal.Number.Float -' ' Text +' ' Text.Whitespace '.1E+34d' Literal.Number.Float -' ' Text +' ' Text.Whitespace '.1E-56d' Literal.Number.Float -'\n' Text +'\n' Text.Whitespace '0x' Literal.Number.Hex -' ' Text +' ' Text.Whitespace '// Can still be highlighted correctly!\n' Comment.Single '0x1234567890ABCDEF' Literal.Number.Hex -' ' Text +' ' Text.Whitespace '0x1234567890abcdef' Literal.Number.Hex -'\n' Text +'\n' Text.Whitespace '0x123_abc' Literal.Number.Hex -' ' Text +' ' Text.Whitespace '0x123_ABC' Literal.Number.Hex -'\n' Text +'\n' Text.Whitespace '"test"' Literal.String -' ' Text +' ' Text.Whitespace '"\\"test\\""' Literal.String -' ' Text +' ' Text.Whitespace '"\'test\'"' Literal.String -' ' Text +' ' Text.Whitespace '// comment\n' Comment.Single '"""test: one ", two "", three """"""' Literal.String -' ' Text +' ' Text.Whitespace '// comment\n' Comment.Single "'t'" Literal.String.Char -' ' Text +' ' Text.Whitespace '\'"\'' Literal.String.Char -' ' Text +' ' Text.Whitespace "'" Literal.String.Char "\\'" Literal.String.Escape "'" Literal.String.Char -' ' Text +' ' Text.Whitespace "'" Literal.String.Char '\\n' Literal.String.Escape "'" Literal.String.Char -' ' Text +' ' Text.Whitespace "' '" Literal.String.Char -'\n' Text +'\n' Text.Whitespace 'super' Name.Builtin.Pseudo -' ' Text +' ' Text.Whitespace 'this' Name.Builtin.Pseudo -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/scala/declarations.scala.output b/tests/examplefiles/scala/declarations.scala.output index d63c86ec..3a94111a 100644 --- a/tests/examplefiles/scala/declarations.scala.output +++ b/tests/examplefiles/scala/declarations.scala.output @@ -1,208 +1,208 @@ 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'x' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class -'\n' Text +'\n' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'y' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer -'\n' Text +'\n' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'z' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer -'\n' Text +'\n' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'x' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class -'\n' Text +'\n' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'y' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer -'\n' Text +'\n' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'z' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer -'\n' Text +'\n' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace '(' Punctuation 'a' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'b' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '(' Punctuation '1' Literal.Number.Integer ',' Punctuation -' ' Text +' ' Text.Whitespace '2' Literal.Number.Integer ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'Some' Name.Class '(' Punctuation 'a' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'Some' Name.Class '(' Punctuation '1' Literal.Number.Integer ',' Punctuation -' ' Text +' ' Text.Whitespace '2' Literal.Number.Integer ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'Pair' Name.Class '(' Punctuation 'a' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'b' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'Pair' Name.Class '(' Punctuation '1' Literal.Number.Integer ',' Punctuation -' ' Text +' ' Text.Whitespace '2' Literal.Number.Integer ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'Test' Name.Class '.' Punctuation 'Pair' Name.Class '(' Punctuation 'a' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'Test' Name.Class '.' Punctuation 'Pair' Name.Class '(' Punctuation '1' Literal.Number.Integer ',' Punctuation -' ' Text +' ' Text.Whitespace '2' Literal.Number.Integer ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'a' Name -' ' Text +' ' Text.Whitespace '::' Operator -' ' Text +' ' Text.Whitespace 'b' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace '::' Operator -' ' Text +' ' Text.Whitespace 'Nil' Name.Class -'\n' Text +'\n' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'a' Name -' ' Text +' ' Text.Whitespace '::' Operator -' ' Text +' ' Text.Whitespace 'b' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace '::' Operator -' ' Text +' ' Text.Whitespace 'Nil' Name.Class -'\n' Text +'\n' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'a' Name -' ' Text +' ' Text.Whitespace '+:' Operator -' ' Text +' ' Text.Whitespace 'rest' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'foo_+' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '"foo plus"' Literal.String -'\n' Text +'\n' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'foo_⌬⌬' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '"double benzene"' Literal.String -'\n\n' Text +'\n\n' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'abs' Name.Function '[' Punctuation 'T' Name.Class @@ -210,73 +210,73 @@ '(' Punctuation 'x' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace '>=' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer -' ' Text +' ' Text.Whitespace 'then' Keyword -' ' Text +' ' Text.Whitespace 'new' Keyword -' ' Text +' ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace 'else' Keyword -' ' Text +' ' Text.Whitespace 'now' Name -' ' Text +' ' Text.Whitespace '-' Operator 'x' Name -'\n' Text +'\n' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'abs' Name.Function '(' Punctuation 'x' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace '>=' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer -' ' Text +' ' Text.Whitespace 'then' Keyword -' ' Text +' ' Text.Whitespace 'new' Keyword -' ' Text +' ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace 'else' Keyword -' ' Text +' ' Text.Whitespace 'now' Name -' ' Text +' ' Text.Whitespace '-' Operator 'x' Name -'\n' Text +'\n' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'sum' Name.Function '[' Punctuation 'A' Name.Class @@ -284,7 +284,7 @@ '(' Punctuation 'xs' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'List' Name.Class '[' Punctuation 'A' Name.Class @@ -292,26 +292,26 @@ ')' Punctuation '(' Punctuation 'implicit' Keyword -' ' Text +' ' Text.Whitespace 'm' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Monoid' Name.Class '[' Punctuation 'A' Name.Class ']' Punctuation ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'A' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'sum' Name.Function '[' Punctuation 'A' Name.Class @@ -319,7 +319,7 @@ '(' Punctuation 'xs' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'List' Name.Class '[' Punctuation 'A' Name.Class @@ -327,23 +327,23 @@ ')' Punctuation '(' Punctuation 'implicit' Keyword -' ' Text +' ' Text.Whitespace 'Monoid' Name.Class '[' Punctuation 'A' Name.Class ']' Punctuation ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'A' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'sum' Name.Function '[' Punctuation 'A' Name.Class @@ -351,7 +351,7 @@ '(' Punctuation 'xs' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'List' Name.Class '[' Punctuation 'A' Name.Class @@ -359,26 +359,26 @@ ')' Punctuation '(' Punctuation 'using' Keyword -' ' Text +' ' Text.Whitespace 'm' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Monoid' Name.Class '[' Punctuation 'A' Name.Class ']' Punctuation ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'A' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'sum' Name.Function '[' Punctuation 'A' Name.Class @@ -386,7 +386,7 @@ '(' Punctuation 'xs' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'List' Name.Class '[' Punctuation 'A' Name.Class @@ -394,382 +394,382 @@ ')' Punctuation '(' Punctuation 'using' Keyword -' ' Text +' ' Text.Whitespace 'Monoid' Name.Class '[' Punctuation 'A' Name.Class ']' Punctuation ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'A' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'reduceRight' Name.Function '(' Punctuation 'op' Name ':' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation 'T' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'T' Name.Class ')' Punctuation -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace 'T' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'T' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'foldRight' Name.Function '[' Punctuation ']' Punctuation '(' Punctuation 'z' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'U' Name.Class ')' Punctuation '(' Punctuation 'op' Name ':' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation 'T' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'U' Name.Class ')' Punctuation -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace 'U' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'U' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'obj' Name.Function '(' Punctuation 'fields' Name ':' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation 'String' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'Any' Name.Class ')' Punctuation '*' Operator ',' Punctuation -' ' Text +' ' Text.Whitespace 'test' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'String' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Json' Name.Class -'\n' Text +'\n' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace '::' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation 'xs' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'List' Name.Class '[' Punctuation 'T' Name.Class ']' Punctuation ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'List' Name.Class '[' Punctuation 'T' Name.Class ']' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '::' Name '(' Punctuation 'x' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'xs' Name ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace '::' Name.Function '(' Punctuation 'xs' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'List' Name.Class '[' Punctuation 'T' Name.Class ']' Punctuation ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'List' Name.Class '[' Punctuation 'T' Name.Class ']' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '::' Name '(' Punctuation 'x' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'xs' Name ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace 'trait' Keyword -' ' Text +' ' Text.Whitespace 'X' Name.Class -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'object' Keyword -' ' Text +' ' Text.Whitespace 'X' Name.Class -'\n' Text +'\n' Text.Whitespace 'class' Keyword -' ' Text +' ' Text.Whitespace 'Y' Name.Class -'\n' Text +'\n' Text.Whitespace 'open' Keyword -' ' Text +' ' Text.Whitespace 'object' Keyword -' ' Text +' ' Text.Whitespace 'X' Name.Class ':' Punctuation -'\n' Text +'\n' Text.Whitespace 'open' Keyword -' ' Text +' ' Text.Whitespace 'class' Keyword -' ' Text +' ' Text.Whitespace 'Y' Name.Class ':' Punctuation -'\n' Text +'\n' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'object' Keyword -' ' Text +' ' Text.Whitespace 'X' Name.Class -'\n' Text +'\n' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'class' Keyword -' ' Text +' ' Text.Whitespace 'Y' Name.Class '(' Punctuation ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'package' Keyword -' ' Text +' ' Text.Whitespace 'object' Keyword -' ' Text +' ' Text.Whitespace 'x' Name.Namespace -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'package' Keyword -' ' Text +' ' Text.Whitespace 'object' Keyword -' ' Text +' ' Text.Whitespace 'y' Name.Namespace ':' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace 'type' Keyword -' ' Text +' ' Text.Whitespace 'X' Name.Class -'\n' Text +'\n' Text.Whitespace 'type' Keyword -' ' Text +' ' Text.Whitespace 'X' Name.Class -' ' Text +' ' Text.Whitespace '<:' Operator -' ' Text +' ' Text.Whitespace 'Y' Name.Class -'\n' Text +'\n' Text.Whitespace 'type' Keyword -' ' Text +' ' Text.Whitespace 'X' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'Y' Name.Class -'\n' Text +'\n' Text.Whitespace 'type' Keyword -' ' Text +' ' Text.Whitespace 'X' Name.Class '[' Punctuation 'Y' Name.Class ']' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'Y' Name.Class -' ' Text +' ' Text.Whitespace 'with' Keyword -' ' Text +' ' Text.Whitespace 'Z' Name.Class -'\n' Text +'\n' Text.Whitespace 'type' Keyword -' ' Text +' ' Text.Whitespace 'X' Name.Class '[' Punctuation 'Y' Name.Class ']' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'Y' Name.Class -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace '(' Punctuation '1' Literal.Number.Integer -' ' Text +' ' Text.Whitespace '|' Operator -' ' Text +' ' Text.Whitespace '2' Literal.Number.Integer ',' Punctuation -' ' Text +' ' Text.Whitespace '3' Literal.Number.Integer ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'type' Keyword -' ' Text +' ' Text.Whitespace 'X' Name.Class '[' Punctuation 'Y' Name.Class ']' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '(' Punctuation 'Y' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace '3' Literal.Number.Integer ')' Punctuation -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace '(' Punctuation '1' Literal.Number.Integer -' ' Text +' ' Text.Whitespace '|' Operator -' ' Text +' ' Text.Whitespace '2' Literal.Number.Integer ',' Punctuation -' ' Text +' ' Text.Whitespace '3' Literal.Number.Integer ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'type' Keyword -' ' Text +' ' Text.Whitespace 'Foo' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'Bar' Name.Class '.' Punctuation 'Baz' Name.Class -'\n\n' Text +'\n\n' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace 'Foo' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace 'foo' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace 'foo' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Foo' Name.Class -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n' Text +'\n' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace 'listOrd' Name '[' Punctuation 'T' Name.Class ':' Punctuation -' ' Text +' ' Text.Whitespace 'Ordering' Name.Class ']' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Ordering' Name.Class '[' Punctuation 'List' Name.Class @@ -777,55 +777,55 @@ 'T' Name.Class ']' Punctuation ']' Punctuation -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n' Text +'\n' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace 'listOrd' Name '(' Punctuation 'using' Keyword -' ' Text +' ' Text.Whitespace 'ev' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Ev' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Foo' Name.Class -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n' Text +'\n' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace 'Ordering' Name.Class '[' Punctuation 'Int' Name.Class ']' Punctuation -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n' Text +'\n' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace 'Foo' Name.Class -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n' Text +'\n' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace '[' Punctuation 'T' Name.Class ':' Punctuation -' ' Text +' ' Text.Whitespace 'Ordering' Name.Class ']' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Ordering' Name.Class '[' Punctuation 'List' Name.Class @@ -833,75 +833,75 @@ 'T' Name.Class ']' Punctuation ']' Punctuation -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n' Text +'\n' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation 'using' Keyword -' ' Text +' ' Text.Whitespace 'ev' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Ev' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Foo' Name.Class -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n' Text +'\n' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace 'intOrd' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Ordering' Name.Class '[' Punctuation 'Int' Name.Class ']' Punctuation -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n' Text +'\n' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace 'foo' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Foo' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace '`foo`' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Foo' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace 'listOrd' Name '[' Punctuation 'T' Name.Class ':' Punctuation -' ' Text +' ' Text.Whitespace 'Ordering' Name.Class ']' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Ordering' Name.Class '[' Punctuation 'List' Name.Class @@ -909,63 +909,63 @@ 'T' Name.Class ']' Punctuation ']' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace 'listOrd' Name '(' Punctuation 'using' Keyword -' ' Text +' ' Text.Whitespace 'ev' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Ev' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Foo' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace 'Ordering' Name.Class '[' Punctuation 'Int' Name.Class ']' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace 'Foo' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace '[' Punctuation 'T' Name.Class ':' Punctuation -' ' Text +' ' Text.Whitespace 'Ordering' Name.Class ']' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Ordering' Name.Class '[' Punctuation 'List' Name.Class @@ -973,264 +973,264 @@ 'T' Name.Class ']' Punctuation ']' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation 'using' Keyword -' ' Text +' ' Text.Whitespace 'ev' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Ev' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Foo' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n\n' Text +'\n\n' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace 'sumMonoid' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Monoid' Name.Class '[' Punctuation 'Int' Name.Class ']' Punctuation -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n ' Text +'\n ' Text.Whitespace 'extension' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation 'x' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class ')' Punctuation -' ' Text +' ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'combine' Name.Function '(' Punctuation 'y' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class ')' Punctuation -' ' Text +' ' Text.Whitespace ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace '+' Operator -' ' Text +' ' Text.Whitespace 'y' Name -' \n ' Text +' \n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'unit' Name.Function ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer -'\n\n' Text +'\n\n' Text.Whitespace 'trait' Keyword -' ' Text +' ' Text.Whitespace 'Ord' Name.Class '[' Punctuation 'T' Name.Class ']' Punctuation ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'compare' Name.Function '(' Punctuation 'x' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'T' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'y' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'T' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class -'\n ' Text +'\n ' Text.Whitespace 'extension' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation 'x' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'T' Name.Class ')' Punctuation -' ' Text +' ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace '<' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation 'y' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'T' Name.Class ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'compare' Name '(' Punctuation 'x' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'y' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '<' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer -'\n ' Text +'\n ' Text.Whitespace 'extension' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation 'x' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'T' Name.Class ')' Punctuation -' ' Text +' ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace '>' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation 'y' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'T' Name.Class ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'compare' Name '(' Punctuation 'x' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'y' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '>' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer -'\n' Text +'\n' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace 'intOrd' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Ord' Name.Class '[' Punctuation 'Int' Name.Class ']' Punctuation -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'compare' Name.Function '(' Punctuation 'x' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'y' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace '<' Operator -' ' Text +' ' Text.Whitespace 'y' Name -' ' Text +' ' Text.Whitespace 'then' Keyword -' ' Text +' ' Text.Whitespace '-' Operator '1' Literal.Number.Integer -' ' Text +' ' Text.Whitespace 'else' Keyword -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace '>' Operator -' ' Text +' ' Text.Whitespace 'y' Name -' ' Text +' ' Text.Whitespace 'then' Keyword -' ' Text +' ' Text.Whitespace '+' Operator '1' Literal.Number.Integer -' ' Text +' ' Text.Whitespace 'else' Keyword -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer -'\n' Text +'\n' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace 'listOrd' Name '[' Punctuation 'T' Name.Class ']' Punctuation '(' Punctuation 'using' Keyword -' ' Text +' ' Text.Whitespace 'ord' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Ord' Name.Class '[' Punctuation 'T' Name.Class ']' Punctuation ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Ord' Name.Class '[' Punctuation 'List' Name.Class @@ -1238,585 +1238,585 @@ 'T' Name.Class ']' Punctuation ']' Punctuation -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'compare' Name.Function '(' Punctuation 'xs' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'List' Name.Class '[' Punctuation 'T' Name.Class ']' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'ys' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'List' Name.Class '[' Punctuation 'T' Name.Class ']' Punctuation ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '(' Punctuation 'xs' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'ys' Name ')' Punctuation -' ' Text +' ' Text.Whitespace 'match' Keyword -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation 'Nil' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'Nil' Name.Class ')' Punctuation -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation 'Nil' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace '_' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace '-' Operator '1' Literal.Number.Integer -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation '_' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'Nil' Name.Class ')' Punctuation -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace '+' Operator '1' Literal.Number.Integer -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation 'x' Name -' ' Text +' ' Text.Whitespace '::' Operator -' ' Text +' ' Text.Whitespace 'xs1' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'y' Name -' ' Text +' ' Text.Whitespace '::' Operator -' ' Text +' ' Text.Whitespace 'ys1' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=>' Operator -'\n ' Text +'\n ' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'fst' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'ord' Name '.' Punctuation 'compare' Name '(' Punctuation 'x' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'y' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'fst' Name -' ' Text +' ' Text.Whitespace '!=' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer -' ' Text +' ' Text.Whitespace 'then' Keyword -' ' Text +' ' Text.Whitespace 'fst' Name -' ' Text +' ' Text.Whitespace 'else' Keyword -' ' Text +' ' Text.Whitespace 'compare' Name '(' Punctuation 'xs1' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'ys1' Name ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'trait' Keyword -' ' Text +' ' Text.Whitespace 'A' Name.Class -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n ' Text +'\n ' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace 'ac' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'C' Name.Class -'\n' Text +'\n' Text.Whitespace 'trait' Keyword -' ' Text +' ' Text.Whitespace 'B' Name.Class -' ' Text +' ' Text.Whitespace 'extends' Keyword -' ' Text +' ' Text.Whitespace 'A' Name.Class -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n ' Text +'\n ' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace 'bc' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'C' Name.Class -'\n' Text +'\n' Text.Whitespace 'object' Keyword -' ' Text +' ' Text.Whitespace 'O' Name.Class -' ' Text +' ' Text.Whitespace 'extends' Keyword -' ' Text +' ' Text.Whitespace 'B' Name.Class -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n ' Text +'\n ' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'summon' Name '[' Punctuation 'C' Name.Class ']' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace '// Classes\n' Comment.Single 'class' Keyword -' ' Text +' ' Text.Whitespace 'A' Name.Class -'\n' Text +'\n' Text.Whitespace 'class' Keyword -' ' Text +' ' Text.Whitespace 'B' Name.Class -'\n' Text +'\n' Text.Whitespace 'class' Keyword -' ' Text +' ' Text.Whitespace 'Bar' Name.Class -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n' Text +'\n' Text.Whitespace 'class' Keyword -' ' Text +' ' Text.Whitespace 'Foo' Name.Class -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n' Text +'\n' Text.Whitespace 'class' Keyword -' ' Text +' ' Text.Whitespace '::' Name.Class -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n' Text +'\n' Text.Whitespace 'class' Keyword -' ' Text +' ' Text.Whitespace 'Rational' Name.Class '(' Punctuation 'x' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'y' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class ')' Punctuation -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'numer' Name.Function -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'x' Name -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'denom' Name.Function -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'y' Name -'\n' Text +'\n' Text.Whitespace 'class' Keyword -' ' Text +' ' Text.Whitespace 'Cons' Name.Class '(' Punctuation '_head' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace '_tail' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'IntList' Name.Class ')' Punctuation -' ' Text +' ' Text.Whitespace 'extends' Keyword -' ' Text +' ' Text.Whitespace 'IntList' Name.Class -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n ' Text +'\n ' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'head' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '_head' Name -'\n ' Text +'\n ' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'tail' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '_tail' Name -'\n' Text +'\n' Text.Whitespace 'class' Keyword -' ' Text +' ' Text.Whitespace 'Int' Name.Class -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace '+' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation 'that' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Double' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Double' Name.Class -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace '+' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation 'that' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Float' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Float' Name.Class -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace '+' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation 'that' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Long' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Long' Name.Class -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace '+' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation 'that' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class -' ' Text +' ' Text.Whitespace '// same for -, *, /, %\n' Comment.Single -' ' Text +' ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace '<<' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation 'cnt' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class -' ' Text +' ' Text.Whitespace '// same for >>, >>> */\n' Comment.Single -' ' Text +' ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace '&' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation 'that' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Long' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Long' Name.Class -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace '&' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation 'that' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class -' ' Text +' ' Text.Whitespace '// same for |, ^ */\n' Comment.Single -' ' Text +' ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace '==' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation 'that' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Double' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Boolean' Name.Class -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace '==' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation 'that' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Float' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Boolean' Name.Class -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace '==' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation 'that' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Long' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Boolean' Name.Class -' ' Text +' ' Text.Whitespace '// same for !=, <, >, <=, >=\n' Comment.Single 'end' Keyword -' ' Text +' ' Text.Whitespace 'Int' Name.Class -'\n' Text +'\n' Text.Whitespace 'class' Keyword -' ' Text +' ' Text.Whitespace 'Sub' Name.Class -' ' Text +' ' Text.Whitespace 'extends' Keyword -' ' Text +' ' Text.Whitespace 'Base' Name.Class -' ' Text +' ' Text.Whitespace 'with' Keyword -' ' Text +' ' Text.Whitespace 'Something' Name.Class -' ' Text +' ' Text.Whitespace '{' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'override' Keyword -' ' Text +' ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'foo' Name.Function -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '2' Literal.Number.Integer -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'bar' Name.Function -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '3' Literal.Number.Integer -'\n' Text +'\n' Text.Whitespace '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'class' Keyword -' ' Text +' ' Text.Whitespace 'Succ' Name.Class '(' Punctuation 'n' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Nat' Name.Class ')' Punctuation -' ' Text +' ' Text.Whitespace 'extends' Keyword -' ' Text +' ' Text.Whitespace 'Nat' Name.Class -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n ' Text +'\n ' Text.Whitespace '// ...\n' Comment.Single 'open' Keyword -' ' Text +' ' Text.Whitespace 'class' Keyword -' ' Text +' ' Text.Whitespace 'Writer' Name.Class '[' Punctuation 'T' Name.Class ']' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation -'\n ' Text +'\n ' Text.Whitespace '/*' Comment.Multiline '*' Comment.Multiline ' Sends to stdout, can be overridden ' Comment.Multiline '*/' Comment.Multiline -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'send' Name.Function '(' Punctuation 'x' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'T' Name.Class ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'println' Name '(' Punctuation 'x' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '/*' Comment.Multiline '*' Comment.Multiline ' Sends all arguments using `send` ' Comment.Multiline '*/' Comment.Multiline -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'sendAll' Name.Function '(' Punctuation 'xs' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'T' Name.Class '*' Operator ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'xs' Name '.' Punctuation 'foreach' Name '(' Punctuation 'send' Name ')' Punctuation -'\n' Text +'\n' Text.Whitespace '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'class' Keyword -' ' Text +' ' Text.Whitespace 'LazyList' Name.Class '[' Punctuation '+' Operator @@ -1825,427 +1825,427 @@ '(' Punctuation 'init' Name ':' Punctuation -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace 'State' Name.Class '[' Punctuation 'T' Name.Class ']' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n ' Text +'\n ' Text.Whitespace 'lazy' Keyword -' ' Text +' ' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'state' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'State' Name.Class '[' Punctuation 'T' Name.Class ']' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'init' Name -'\t\t\t\n\n' Text +'\t\t\t\n\n' Text.Whitespace 'trait' Keyword -' ' Text +' ' Text.Whitespace 'Foo' Name.Class -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n' Text +'\n' Text.Whitespace 'trait' Keyword -' ' Text +' ' Text.Whitespace 'Bar' Name.Class -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n' Text +'\n' Text.Whitespace 'trait' Keyword -' ' Text +' ' Text.Whitespace '*:' Name.Class -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n' Text +'\n' Text.Whitespace 'trait' Keyword -' ' Text +' ' Text.Whitespace '*:' Name.Class -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n' Text +'\n' Text.Whitespace 'trait' Keyword -' ' Text +' ' Text.Whitespace '::' Name.Class -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n' Text +'\n' Text.Whitespace '1' Literal.Number.Integer -' ' Text +' ' Text.Whitespace '::' Operator -' ' Text +' ' Text.Whitespace 'Nil' Name.Class -'\n' Text +'\n' Text.Whitespace '1' Literal.Number.Integer -' ' Text +' ' Text.Whitespace '::' Operator -'\n\n' Text +'\n\n' Text.Whitespace 'object' Keyword -' ' Text +' ' Text.Whitespace '⌘' Name.Class -' ' Text +' ' Text.Whitespace '{' Punctuation -'\n \n' Text +'\n \n' Text.Whitespace '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'object' Keyword -' ' Text +' ' Text.Whitespace 'Foo' Name.Class -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n' Text +'\n' Text.Whitespace 'object' Keyword -' ' Text +' ' Text.Whitespace 'Bar' Name.Class -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n' Text +'\n' Text.Whitespace 'object' Keyword -' ' Text +' ' Text.Whitespace 'Zero' Name.Class -' ' Text +' ' Text.Whitespace 'extends' Keyword -' ' Text +' ' Text.Whitespace 'Nat' Name.Class -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n ' Text +'\n ' Text.Whitespace '.' Punctuation '.' Punctuation '.' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace 'object' Keyword -' ' Text +' ' Text.Whitespace 'Enum' Name.Class -' ' Text +' ' Text.Whitespace 'extends' Keyword -' ' Text +' ' Text.Whitespace 'Enumeration' Name.Class -' ' Text +' ' Text.Whitespace '{' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'Foo' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'Bar' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'Baz' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'Value' Name.Class -'\n' Text +'\n' Text.Whitespace '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'enum' Keyword -' ' Text +' ' Text.Whitespace 'Color' Name.Class -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'Red' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'Green' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'Blue' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'Magenta' Name.Class -'\n' Text +'\n' Text.Whitespace 'enum' Keyword -' ' Text +' ' Text.Whitespace 'Color' Name.Class '(' Punctuation 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'test' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class ')' Punctuation -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'Red' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'Green' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'Blue' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'Magenta' Name.Class -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'isPrimary' Name.Function '(' Punctuation 'color' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Color' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Boolean' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'color' Name -' ' Text +' ' Text.Whitespace 'match' Keyword -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'Red' Name.Class -' ' Text +' ' Text.Whitespace '|' Operator -' ' Text +' ' Text.Whitespace 'Green' Name.Class -' ' Text +' ' Text.Whitespace '|' Operator -' ' Text +' ' Text.Whitespace 'Blue' Name.Class -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace 'true' Keyword.Constant -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'Magenta' Name.Class -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace 'false' Keyword.Constant -'\n' Text +'\n' Text.Whitespace 'enum' Keyword -' ' Text +' ' Text.Whitespace 'State' Name.Class '[' Punctuation 'T' Name.Class ']' Punctuation -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'Empty' Name.Class -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'Cons' Name.Class '(' Punctuation 'hd' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'T' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'tl' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'LazyList' Name.Class '[' Punctuation 'T' Name.Class ']' Punctuation ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'abstract' Keyword -' ' Text +' ' Text.Whitespace 'class' Keyword -' ' Text +' ' Text.Whitespace 'Color' Name.Class -'\n' Text +'\n' Text.Whitespace 'object' Keyword -' ' Text +' ' Text.Whitespace 'Color' Name.Class -' ' Text +' ' Text.Whitespace '{' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'Red' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'Color' Name.Class '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'Green' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'Color' Name.Class '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'Blue' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'Color' Name.Class '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'Magenta' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'Color' Name.Class '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '.' Punctuation '.' Punctuation '.' Punctuation -'\n' Text +'\n' Text.Whitespace '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'enum' Keyword -' ' Text +' ' Text.Whitespace 'Vehicle' Name.Class '(' Punctuation 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'numberOfWheels' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'Unicycle' Name.Class -' ' Text +' ' Text.Whitespace 'extends' Keyword -' ' Text +' ' Text.Whitespace 'Vehicle' Name.Class '(' Punctuation '1' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'Bicycle' Name.Class -' ' Text +' ' Text.Whitespace 'extends' Keyword -' ' Text +' ' Text.Whitespace 'Vehicle' Name.Class '(' Punctuation '2' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'Car' Name.Class -' ' Text +' ' Text.Whitespace 'extends' Keyword -' ' Text +' ' Text.Whitespace 'Vehicle' Name.Class '(' Punctuation '4' Literal.Number.Integer ')' Punctuation -'\n' Text +'\n' Text.Whitespace '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'enum' Keyword -' ' Text +' ' Text.Whitespace 'Vehicle' Name.Class '(' Punctuation 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'numberOfWheels' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class ')' Punctuation ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'Unicycle' Name.Class -' ' Text +' ' Text.Whitespace 'extends' Keyword -' ' Text +' ' Text.Whitespace 'Vehicle' Name.Class '(' Punctuation '1' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'Bicycle' Name.Class -' ' Text +' ' Text.Whitespace 'extends' Keyword -' ' Text +' ' Text.Whitespace 'Vehicle' Name.Class '(' Punctuation '2' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'Car' Name.Class -' ' Text +' ' Text.Whitespace 'extends' Keyword -' ' Text +' ' Text.Whitespace 'Vehicle' Name.Class '(' Punctuation '4' Literal.Number.Integer ')' Punctuation -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/scala/dependent-types.scala.output b/tests/examplefiles/scala/dependent-types.scala.output index 70f2ad52..9348a79c 100644 --- a/tests/examplefiles/scala/dependent-types.scala.output +++ b/tests/examplefiles/scala/dependent-types.scala.output @@ -1,102 +1,102 @@ 'trait' Keyword -' ' Text +' ' Text.Whitespace 'Entry' Name.Class -' ' Text +' ' Text.Whitespace '{' Punctuation -' ' Text +' ' Text.Whitespace 'type' Keyword -' ' Text +' ' Text.Whitespace 'Key' Name.Class ';' Punctuation -' ' Text +' ' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'key' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Key' Name.Class -' ' Text +' ' Text.Whitespace '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'extractKey' Name.Function '(' Punctuation 'e' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Entry' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'e' Name '.' Punctuation 'Key' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'e' Name '.' Punctuation 'key' Name -'\n' Text +'\n' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'extractor' Name ':' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation 'e' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Entry' Name.Class ')' Punctuation -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace 'e' Name '.' Punctuation 'Key' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'extractKey' Name -'\n' Text +'\n' Text.Whitespace 'type' Keyword -' ' Text +' ' Text.Whitespace 'Extractor' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'Function1' Name.Class '[' Punctuation 'Entry' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'Entry' Name.Class '#' Name 'Key' Name.Class ']' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'apply' Name.Function '(' Punctuation 'e' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Entry' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'e' Name '.' Punctuation 'Key' Name.Class -'\n' Text +'\n' Text.Whitespace '}' Punctuation -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/scala/end-soft-keyword.scala.output b/tests/examplefiles/scala/end-soft-keyword.scala.output index 39ead49c..d1344616 100644 --- a/tests/examplefiles/scala/end-soft-keyword.scala.output +++ b/tests/examplefiles/scala/end-soft-keyword.scala.output @@ -1,6 +1,6 @@ 'end' Name -' ' Text +' ' Text.Whitespace '+' Operator -' ' Text +' ' Text.Whitespace '2' Literal.Number.Integer -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/scala/end.scala.output b/tests/examplefiles/scala/end.scala.output index 3f3205c5..efcfba91 100644 --- a/tests/examplefiles/scala/end.scala.output +++ b/tests/examplefiles/scala/end.scala.output @@ -1,332 +1,332 @@ 'new' Keyword -' ' Text +' ' Text.Whitespace 'Foo' Name.Class ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace '// ...\n' Comment.Single 'end' Keyword -' ' Text +' ' Text.Whitespace 'new' Keyword -'\n' Text +'\n' Text.Whitespace 'end' Keyword -' ' Text +' ' Text.Whitespace 'extension' Keyword -'\n' Text +'\n' Text.Whitespace 'end' Keyword -' ' Text +' ' Text.Whitespace 'if' Keyword -'\n' Text +'\n' Text.Whitespace 'end' Keyword -' ' Text +' ' Text.Whitespace 'while' Keyword -'\n' Text +'\n' Text.Whitespace 'end' Keyword -' ' Text +' ' Text.Whitespace 'for' Keyword -'\n' Text +'\n' Text.Whitespace 'end' Keyword -' ' Text +' ' Text.Whitespace 'match' Keyword -'\n' Text +'\n' Text.Whitespace 'class' Keyword -' ' Text +' ' Text.Whitespace 'Foo' Name.Class -'\n' Text +'\n' Text.Whitespace 'end' Keyword -' ' Text +' ' Text.Whitespace 'Foo' Name.Class -'\n' Text +'\n' Text.Whitespace 'end' Keyword -' ' Text +' ' Text.Whitespace 'bar' Name.Namespace -'\n' Text +'\n' Text.Whitespace 'end' Keyword -' ' Text +' ' Text.Whitespace '`bar`' Name.Namespace -'\n' Text +'\n' Text.Whitespace 'end' Keyword -' ' Text +' ' Text.Whitespace '// test comment\n' Comment.Single 'package' Keyword -' ' Text +' ' Text.Whitespace 'p1' Name.Namespace '.' Punctuation 'p2' Name ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'abstract' Keyword -' ' Text +' ' Text.Whitespace 'class' Keyword -' ' Text +' ' Text.Whitespace 'C' Name.Class '(' Punctuation ')' Punctuation ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'this' Name.Function '(' Punctuation 'x' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'this' Name.Builtin.Pseudo '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace '>' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer -' ' Text +' ' Text.Whitespace 'then' Keyword -'\n ' Text +'\n ' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'a' Name -' ' Text +' ' Text.Whitespace '::' Operator -' ' Text +' ' Text.Whitespace 'b' Name -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace '::' Operator -' ' Text +' ' Text.Whitespace 'Nil' Name.Class -'\n ' Text +'\n ' Text.Whitespace 'end' Keyword -' ' Text +' ' Text.Whitespace 'val' Keyword -' ' Text +' ' Text.Whitespace '// test comment\n' Comment.Single -' ' Text +' ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'y' Name -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'x' Name -'\n ' Text +'\n ' Text.Whitespace 'end' Keyword -' ' Text +' ' Text.Whitespace 'y' Name.Namespace -' ' Text +' ' Text.Whitespace '// test comment\n' Comment.Single -' ' Text +' ' Text.Whitespace 'while' Keyword -' ' Text +' ' Text.Whitespace 'y' Name -' ' Text +' ' Text.Whitespace '>' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer -' ' Text +' ' Text.Whitespace 'do' Keyword -'\n ' Text +'\n ' Text.Whitespace 'println' Name '(' Punctuation 'y' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'y' Name -' ' Text +' ' Text.Whitespace '-=' Operator -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer -'\n ' Text +'\n ' Text.Whitespace 'end' Keyword -' ' Text +' ' Text.Whitespace 'while' Keyword -' ' Text +' ' Text.Whitespace '// test comment\n' Comment.Single -' ' Text +' ' Text.Whitespace 'try' Keyword -'\n ' Text +'\n ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace 'match' Keyword -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace 'println' Name '(' Punctuation '"0"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace '_' Name -' ' Text +' ' Text.Whitespace '=>' Operator -'\n ' Text +'\n ' Text.Whitespace 'end' Keyword -' ' Text +' ' Text.Whitespace 'match' Keyword -' ' Text +' ' Text.Whitespace '// test comment\n' Comment.Single -' ' Text +' ' Text.Whitespace 'finally' Keyword -'\n ' Text +'\n ' Text.Whitespace 'println' Name '(' Punctuation '"done"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'end' Keyword -' ' Text +' ' Text.Whitespace 'try' Name.Namespace -' ' Text +' ' Text.Whitespace '// test comment\n' Comment.Single -' ' Text +' ' Text.Whitespace 'end' Keyword -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '// test comment\n' Comment.Single -' ' Text +' ' Text.Whitespace 'end' Keyword -' ' Text +' ' Text.Whitespace 'this' Name.Namespace -' ' Text +' ' Text.Whitespace '// test comment\n' Comment.Single -' ' Text +' ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'f' Name.Function ':' Punctuation -' ' Text +' ' Text.Whitespace 'String' Name.Class -'\n ' Text +'\n ' Text.Whitespace 'end' Keyword -' ' Text +' ' Text.Whitespace 'C' Name.Class -' ' Text +' ' Text.Whitespace '// test comment\n' Comment.Single -' ' Text +' ' Text.Whitespace 'object' Keyword -' ' Text +' ' Text.Whitespace 'C' Name.Class ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace 'C' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'new' Keyword -' ' Text +' ' Text.Whitespace 'C' Name.Class ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'f' Name.Function -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '"!"' Literal.String -'\n ' Text +'\n ' Text.Whitespace 'end' Keyword -' ' Text +' ' Text.Whitespace 'f' Name.Namespace -' ' Text +' ' Text.Whitespace '// test comment\n' Comment.Single -' ' Text +' ' Text.Whitespace 'end' Keyword -' ' Text +' ' Text.Whitespace 'new' Keyword -' ' Text +' ' Text.Whitespace '// test comment\n' Comment.Single -' ' Text +' ' Text.Whitespace 'end' Keyword -' ' Text +' ' Text.Whitespace 'given' Name.Namespace -' ' Text +' ' Text.Whitespace '// test comment\n' Comment.Single -' ' Text +' ' Text.Whitespace 'end' Keyword -' ' Text +' ' Text.Whitespace 'C' Name.Class -' ' Text +' ' Text.Whitespace '// test comment\n' Comment.Single -' ' Text +' ' Text.Whitespace 'extension' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation 'x' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'C' Name.Class ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'ff' Name.Function ':' Punctuation -' ' Text +' ' Text.Whitespace 'String' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'x' Name '.' Punctuation 'f' Name -' ' Text +' ' Text.Whitespace '++' Operator -' ' Text +' ' Text.Whitespace 'x' Name '.' Punctuation 'f' Name -'\n ' Text +'\n ' Text.Whitespace 'end' Keyword -' ' Text +' ' Text.Whitespace 'extension' Keyword -' ' Text +' ' Text.Whitespace '// test comment\n' Comment.Single 'end' Keyword -' ' Text +' ' Text.Whitespace 'p2' Name.Namespace -' ' Text +' ' Text.Whitespace '// test comment\n' Comment.Single diff --git a/tests/examplefiles/scala/exports.scala.output b/tests/examplefiles/scala/exports.scala.output index cb8f8a86..0968bf29 100644 --- a/tests/examplefiles/scala/exports.scala.output +++ b/tests/examplefiles/scala/exports.scala.output @@ -1,26 +1,26 @@ 'export' Keyword -' ' Text +' ' Text.Whitespace '// This is incorrect Scala but can still be highlighted correctly\n' Comment.Single '' Text 'export' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Namespace '.' Punctuation '_' Name '\n' Text 'export' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Namespace '.' Punctuation 'x' Name -' ' Text +' ' Text.Whitespace '// Test comment\n' Comment.Single '' Text 'export' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Namespace '.' Punctuation 'x' Name.Namespace @@ -28,166 +28,166 @@ 'y' Name.Namespace '.' Punctuation 'z' Name -' ' Text +' ' Text.Whitespace '// Test comment\n' Comment.Single '' Text 'export' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Namespace '.' Punctuation '{' Punctuation 'x' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'y' Name '}' Punctuation '\n' Text 'export' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Namespace '.' Punctuation '{' Punctuation 'x' Name -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace 'y' Name '}' Punctuation '\n' Text 'export' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Namespace '.' Punctuation '{' Punctuation 'x' Name -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace '}' Punctuation -' ' Text +' ' Text.Whitespace '// This is incorrect Scala but can still be highlighted correctly\n' Comment.Single '' Text 'export' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Namespace '.' Punctuation '{' Punctuation 'x' Name -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace '`test-name`' Name '}' Punctuation -' ' Text +' ' Text.Whitespace '// Test comment\n' Comment.Single '' Text 'export' Keyword -' ' Text +' ' Text.Whitespace 'given' Keyword -'\n' Text +'\n' Text.Whitespace '' Text 'export' Keyword -' ' Text +' ' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace 'a' Name -' ' Text +' ' Text.Whitespace '// Test comment\n' Comment.Single '' Text 'export' Keyword -' ' Text +' ' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Namespace '.' Punctuation 'x' Name -' ' Text +' ' Text.Whitespace '// Test comment\n' Comment.Single '' Text 'export' Keyword -' ' Text +' ' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Namespace '.' Punctuation '_' Name '\n' Text 'export' Keyword -' ' Text +' ' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Namespace '.' Punctuation '{' Punctuation 'x' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'y' Name '}' Punctuation -' ' Text +' ' Text.Whitespace '// Test comment\n' Comment.Single '' Text 'export' Keyword -' ' Text +' ' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Namespace '.' Punctuation '{' Punctuation 'x' Name -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace 'y' Name '}' Punctuation '\n' Text 'export' Keyword -' ' Text +' ' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Namespace '.' Punctuation '{' Punctuation 'x' Name -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace '`test-name`' Name '}' Punctuation '\n' Text -' ' Text +' ' Text.Whitespace 'export' Keyword -' ' Text +' ' Text.Whitespace 'scanUnit' Name.Namespace '.' Punctuation 'scan' Name '\n' Text -' ' Text +' ' Text.Whitespace 'export' Keyword -' ' Text +' ' Text.Whitespace 'printUnit' Name.Namespace '.' Punctuation '{' Punctuation 'status' Name -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace '_' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '_' Name '}' Punctuation '\n' Text diff --git a/tests/examplefiles/scala/extensions.scala.output b/tests/examplefiles/scala/extensions.scala.output index b9255151..6fcb3ac0 100644 --- a/tests/examplefiles/scala/extensions.scala.output +++ b/tests/examplefiles/scala/extensions.scala.output @@ -1,131 +1,131 @@ 'extension' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation 'x' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'String' Name.Class ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace '<' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation 'y' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'String' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Boolean' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '.' Punctuation '.' Punctuation '.' Punctuation -'\n' Text +'\n' Text.Whitespace 'extension' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation 'x' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Elem' Name.Class ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace '+:' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation 'xs' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Seq' Name.Class '[' Punctuation 'Elem' Name.Class ']' Punctuation ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Seq' Name.Class '[' Punctuation 'Elem' Name.Class ']' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '.' Punctuation '.' Punctuation '.' Punctuation -'\n' Text +'\n' Text.Whitespace 'extension' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation 'x' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Number' Name.Class ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'infix' Keyword -' ' Text +' ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'min' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation 'y' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Number' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Number' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '.' Punctuation '.' Punctuation '.' Punctuation -'\n' Text +'\n' Text.Whitespace 'extension' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation 'ss' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Seq' Name.Class '[' Punctuation 'String' Name.Class ']' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'longestStrings' Name.Function ':' Punctuation -' ' Text +' ' Text.Whitespace 'Seq' Name.Class '[' Punctuation 'String' Name.Class ']' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'maxLength' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'ss' Name '.' Punctuation 'map' Name @@ -136,7 +136,7 @@ ')' Punctuation '.' Punctuation 'max' Name -'\n ' Text +'\n ' Text.Whitespace 'ss' Name '.' Punctuation 'filter' Name @@ -144,60 +144,60 @@ '_' Name '.' Punctuation 'length' Name -' ' Text +' ' Text.Whitespace '==' Operator -' ' Text +' ' Text.Whitespace 'maxLength' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'longestString' Name.Function ':' Punctuation -' ' Text +' ' Text.Whitespace 'String' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'longestStrings' Name '.' Punctuation 'head' Name -'\n' Text +'\n' Text.Whitespace 'extension' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation 'ss' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Seq' Name.Class '[' Punctuation 'String' Name.Class ']' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'longestStrings' Name.Function ':' Punctuation -' ' Text +' ' Text.Whitespace 'Seq' Name.Class '[' Punctuation 'String' Name.Class ']' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '{' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'maxLength' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'ss' Name '.' Punctuation 'map' Name @@ -208,7 +208,7 @@ ')' Punctuation '.' Punctuation 'max' Name -'\n ' Text +'\n ' Text.Whitespace 'ss' Name '.' Punctuation 'filter' Name @@ -216,131 +216,131 @@ '_' Name '.' Punctuation 'length' Name -' ' Text +' ' Text.Whitespace '==' Operator -' ' Text +' ' Text.Whitespace 'maxLength' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '}' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'longestString' Name.Function ':' Punctuation -' ' Text +' ' Text.Whitespace 'String' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'longestStrings' Name '.' Punctuation 'head' Name -'\n' Text +'\n' Text.Whitespace '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'extension' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation 'i' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class ')' Punctuation -' ' Text +' ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'isZero' Name.Function ':' Punctuation -' ' Text +' ' Text.Whitespace 'Boolean' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'i' Name -' ' Text +' ' Text.Whitespace '==' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer -'\n' Text +'\n' Text.Whitespace 'extension' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation 'i' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class ')' Punctuation -' ' Text +' ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'divide' Name.Function '(' Punctuation 'd' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Option' Name.Class '[' Punctuation '(' Punctuation 'Int' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class ')' Punctuation ']' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace 'extension' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation 'x' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Rational' Name.Class ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'infix' Keyword -' ' Text +' ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'min' Name.Function '(' Punctuation 'that' Name -' ' Text +' ' Text.Whitespace 'Rational' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Rational' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '.' Punctuation '.' Punctuation '.' Punctuation -'\n' Text +'\n' Text.Whitespace 'given' Keyword -' ' Text +' ' Text.Whitespace '[' Punctuation 'T' Name.Class ':' Punctuation -' ' Text +' ' Text.Whitespace 'Ordering' Name.Class ']' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Ordering' Name.Class '[' Punctuation 'List' Name.Class @@ -348,41 +348,41 @@ 'T' Name.Class ']' Punctuation ']' Punctuation -' ' Text +' ' Text.Whitespace 'with' Keyword -'\n ' Text +'\n ' Text.Whitespace 'extension' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation 'xs' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'List' Name.Class '[' Punctuation 'T' Name.Class ']' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace '<' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation 'ys' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'List' Name.Class '[' Punctuation 'T' Name.Class ']' Punctuation ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Boolean' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '.' Punctuation '.' Punctuation '.' Punctuation -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/scala/for-comprehension.scala.output b/tests/examplefiles/scala/for-comprehension.scala.output index 55147d57..d21e382c 100644 --- a/tests/examplefiles/scala/for-comprehension.scala.output +++ b/tests/examplefiles/scala/for-comprehension.scala.output @@ -1,53 +1,53 @@ 'for' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation -' ' Text +' ' Text.Whitespace 'i' Name -' ' Text +' ' Text.Whitespace '<-' Operator -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer -' ' Text +' ' Text.Whitespace 'to' Name -' ' Text +' ' Text.Whitespace '10' Literal.Number.Integer -' ' Text +' ' Text.Whitespace ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'for' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation 'user' Name -' ' Text +' ' Text.Whitespace '<-' Operator -' ' Text +' ' Text.Whitespace 'userBase' Name -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'user' Name '.' Punctuation 'age' Name -' ' Text +' ' Text.Whitespace '>=' Operator -' ' Text +' ' Text.Whitespace '20' Literal.Number.Integer -' ' Text +' ' Text.Whitespace '&&' Operator -' ' Text +' ' Text.Whitespace 'user' Name '.' Punctuation 'age' Name -' ' Text +' ' Text.Whitespace '<' Operator -' ' Text +' ' Text.Whitespace '30' Literal.Number.Integer ')' Punctuation -' ' Text +' ' Text.Whitespace 'yield' Keyword -' ' Text +' ' Text.Whitespace 'user' Name '.' Punctuation 'name' Name -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/scala/imports.scala.output b/tests/examplefiles/scala/imports.scala.output index 408e910c..631d0d0e 100644 --- a/tests/examplefiles/scala/imports.scala.output +++ b/tests/examplefiles/scala/imports.scala.output @@ -1,96 +1,96 @@ 'import' Keyword -' ' Text +' ' Text.Whitespace '// This is incorrect Scala but can still be highlighted correctly\n' Comment.Single '' Text 'import' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Namespace '.' Punctuation '{' Punctuation 'x' Name -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace 'y' Name '}' Punctuation -' ' Text +' ' Text.Whitespace '// Test comment\n' Comment.Single '' Text 'import' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Namespace '.' Punctuation '{' Punctuation 'x' Name -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace '}' Punctuation -' ' Text +' ' Text.Whitespace '// This is incorrect Scala but can still be highlighted correctly\n' Comment.Single '' Text 'import' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Namespace '.' Punctuation '{' Punctuation 'x' Name -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace '`test-name`' Name '}' Punctuation '\n' Text 'import' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Namespace '.' Punctuation 'given' Keyword '\n' Text 'import' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Namespace '.' Punctuation '{' Punctuation 'given' Keyword -' ' Text +' ' Text.Whitespace 'a' Name '}' Punctuation '\n' Text 'import' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Namespace '.' Punctuation '{' Punctuation 'x' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'y' Name '}' Punctuation '\n' Text 'import' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Namespace '.' Punctuation '_' Name '\n' Text 'import' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Namespace '.' Punctuation 'x' Name '\n' Text 'import' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Namespace '.' Punctuation 'x' Name.Namespace @@ -101,7 +101,7 @@ '\n' Text 'import' Keyword -' ' Text +' ' Text.Whitespace 'java' Name.Namespace '.' Punctuation 'io' Name.Namespace @@ -109,16 +109,16 @@ '{' Punctuation 'File' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'IOException' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'FileNotFoundException' Name.Class '}' Punctuation '\n' Text 'import' Keyword -' ' Text +' ' Text.Whitespace 'java' Name.Namespace '.' Punctuation 'io' Name.Namespace @@ -127,14 +127,14 @@ '\n' Text 'import' Keyword -' ' Text +' ' Text.Whitespace 'scala' Name.Namespace '.' Punctuation 'math' Name.Namespace '.' Punctuation '{' Punctuation 'given' Keyword -' ' Text +' ' Text.Whitespace 'Ordering' Name.Class '[' Punctuation 'Int' Name.Class @@ -143,14 +143,14 @@ '\n' Text 'import' Keyword -' ' Text +' ' Text.Whitespace 'scala' Name.Namespace '.' Punctuation 'math' Name.Namespace '.' Punctuation '{' Punctuation 'given' Keyword -' ' Text +' ' Text.Whitespace 'Ordering' Name.Class '[' Punctuation '?' Name @@ -159,13 +159,13 @@ '\n' Text 'import' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Namespace '.' Punctuation 'givenSomething' Name '\n' Text 'import' Keyword -' ' Text +' ' Text.Whitespace 'givenPackage' Name '\n' Text diff --git a/tests/examplefiles/scala/inheritance.scala.output b/tests/examplefiles/scala/inheritance.scala.output index c55eec64..beae9fe4 100644 --- a/tests/examplefiles/scala/inheritance.scala.output +++ b/tests/examplefiles/scala/inheritance.scala.output @@ -1,68 +1,68 @@ '// Extends\n' Comment.Single 'trait' Keyword -' ' Text +' ' Text.Whitespace 'A' Name.Class -' ' Text +' ' Text.Whitespace 'extends' Keyword -' ' Text +' ' Text.Whitespace 'B' Name.Class -'\n' Text +'\n' Text.Whitespace 'trait' Keyword -' ' Text +' ' Text.Whitespace 'A' Name.Class -' ' Text +' ' Text.Whitespace 'extends' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation 'B' Name.Class -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace 'B' Name.Class ')' Punctuation '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'trait' Keyword -' ' Text +' ' Text.Whitespace 'Color' Name.Class -'\n' Text +'\n' Text.Whitespace 'object' Keyword -' ' Text +' ' Text.Whitespace 'Red' Name.Class -' ' Text +' ' Text.Whitespace 'extends' Keyword -' ' Text +' ' Text.Whitespace 'Color' Name.Class -'\n\n' Text +'\n\n' Text.Whitespace '// Derives\n' Comment.Single 'enum' Keyword -' ' Text +' ' Text.Whitespace 'Tree' Name.Class '[' Punctuation 'T' Name.Class ']' Punctuation -' ' Text +' ' Text.Whitespace 'derives' Keyword -' ' Text +' ' Text.Whitespace 'Eq' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'Ordering' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'Show' Name.Class -' ' Text +' ' Text.Whitespace '{' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'Branch' Name.Class '[' Punctuation 'T' Name.Class @@ -70,24 +70,24 @@ '(' Punctuation 'left' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Tree' Name.Class '[' Punctuation 'T' Name.Class ']' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'right' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Tree' Name.Class '[' Punctuation 'T' Name.Class ']' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'Leaf' Name.Class '[' Punctuation 'T' Name.Class @@ -95,10 +95,10 @@ '(' Punctuation 'elem' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'T' Name.Class ')' Punctuation -'\n' Text +'\n' Text.Whitespace '}' Punctuation -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/scala/inline.scala.output b/tests/examplefiles/scala/inline.scala.output index 4104d2bd..57af6722 100644 --- a/tests/examplefiles/scala/inline.scala.output +++ b/tests/examplefiles/scala/inline.scala.output @@ -1,77 +1,77 @@ 'inline' Keyword -' ' Text +' ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'inline' Name.Function '(' Punctuation 'inline' Keyword -' ' Text +' ' Text.Whitespace 'x' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Double' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace 'inline' Keyword -' ' Text +' ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'power' Name.Function '(' Punctuation 'x' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Double' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'inline' Keyword -' ' Text +' ' Text.Whitespace 'n' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Double' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -'\n' Text +'\n' Text.Whitespace 'inline' Keyword -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation 'n' Name -' ' Text +' ' Text.Whitespace '==' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer -' ' Text +' ' Text.Whitespace 'else' Keyword -' ' Text +' ' Text.Whitespace '2' Literal.Number.Integer -'\n' Text +'\n' Text.Whitespace 'inline' Keyword -' ' Text +' ' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'c' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/scala/interpolated-string.scala.output b/tests/examplefiles/scala/interpolated-string.scala.output index 9c650371..9916f16b 100644 --- a/tests/examplefiles/scala/interpolated-string.scala.output +++ b/tests/examplefiles/scala/interpolated-string.scala.output @@ -1,33 +1,33 @@ 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'n' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '123' Literal.Number.Integer ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'a' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 's"' Literal.String 'n=' Literal.String '$' Literal.String.Interpol 'n' Name '"' Literal.String ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'a2' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 's"' Literal.String 'n=' Literal.String '$' Literal.String.Interpol @@ -35,28 +35,28 @@ "''" Literal.String '"' Literal.String ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'b' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 's"""' Literal.String 'n=' Literal.String '$' Literal.String.Interpol 'n' Name '"""' Literal.String ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'c' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'f"' Literal.String 'n=' Literal.String '$' Literal.String.Interpol @@ -64,14 +64,14 @@ '%f' Literal.String '"' Literal.String ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'd' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'f"""' Literal.String 'n=' Literal.String '$' Literal.String.Interpol @@ -79,41 +79,41 @@ '%f' Literal.String '"""' Literal.String ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'd2' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 's"""' Literal.String 'a' Literal.String '"' Literal.String '"""' Literal.String ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'e' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 's"' Literal.String 'abc' Literal.String '\\u' Literal.String '00e9' Literal.String '"' Literal.String ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'f' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 's"' Literal.String 'a' Literal.String '${' Literal.String.Interpol @@ -122,101 +122,101 @@ 'b' Literal.String '"' Literal.String ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'g' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 's"' Literal.String 'a' Literal.String '${' Literal.String.Interpol 'n' Name -' ' Text +' ' Text.Whitespace '+' Operator -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer '}' Literal.String.Interpol 'b' Literal.String '"' Literal.String ';' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace 's"' Literal.String '1 + 2 = ' Literal.String '${' Literal.String.Interpol -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer -' ' Text +' ' Text.Whitespace '+' Operator -' ' Text +' ' Text.Whitespace '{' Punctuation -' ' Text +' ' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '2' Literal.Number.Integer ';' Punctuation -' ' Text +' ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace '}' Punctuation -' ' Text +' ' Text.Whitespace '}' Literal.String.Interpol '.' Literal.String '"' Literal.String -'\n' Text +'\n' Text.Whitespace 's"""' Literal.String '1 + 2 = ' Literal.String '${' Literal.String.Interpol -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'add' Name.Function '(' Punctuation 'x' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'y' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '{' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace '+' Operator -' ' Text +' ' Text.Whitespace 'y' Name -'\n ' Text +'\n ' Text.Whitespace '}' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'add' Name '(' Punctuation '1' Literal.Number.Integer ',' Punctuation -' ' Text +' ' Text.Whitespace '2' Literal.Number.Integer ')' Punctuation -'\n' Text +'\n' Text.Whitespace '}' Literal.String.Interpol '.' Literal.String '"""' Literal.String -'\n' Text +'\n' Text.Whitespace 's"' Literal.String '$' Literal.String.Interpol @@ -224,7 +224,7 @@ '$' Literal.String.Interpol 'second' Name '"' Literal.String -'\n' Text +'\n' Text.Whitespace 's"' Literal.String '$' Literal.String.Interpol @@ -237,7 +237,7 @@ '$' Literal.String.Interpol 'safeTagMarker' Name '"' Literal.String -'\n' Text +'\n' Text.Whitespace 's"' Literal.String '$' Literal.String.Interpol @@ -258,14 +258,14 @@ 'b' Name '}' Literal.String.Interpol '"' Literal.String -'\n' Text +'\n' Text.Whitespace 's"' Literal.String '${' Literal.String.Interpol 'x$' Name '}' Literal.String.Interpol '"' Literal.String -'\n' Text +'\n' Text.Whitespace 's"' Literal.String '$' Literal.String.Interpol @@ -274,37 +274,37 @@ '$' Literal.String.Interpol 'a' Name '"' Literal.String -' ' Text +' ' Text.Whitespace '// $$ is an escape\n' Comment.Single 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'a' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '4' Literal.Number.Integer ';' Punctuation -' ' Text +' ' Text.Whitespace 'foo' Name '(' Punctuation 'a' Name ')' Punctuation -'\n' Text +'\n' Text.Whitespace 's"' Literal.String '$' Literal.String.Interpol 'safeTagMarker' Name '${' Literal.String.Interpol 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'a' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '4' Literal.Number.Integer ';' Punctuation -' ' Text +' ' Text.Whitespace 'foo' Name '(' Punctuation 'a' Name @@ -313,4 +313,4 @@ '$' Literal.String.Interpol 'safeTagMarker' Name '"' Literal.String -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/scala/match-types.scala.output b/tests/examplefiles/scala/match-types.scala.output index a1d58235..71a1fbd1 100644 --- a/tests/examplefiles/scala/match-types.scala.output +++ b/tests/examplefiles/scala/match-types.scala.output @@ -1,113 +1,113 @@ 'type' Keyword -' ' Text +' ' Text.Whitespace 'Elem' Name.Class '[' Punctuation 'X' Name.Class ']' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'X' Name.Class -' ' Text +' ' Text.Whitespace 'match' Keyword -' ' Text +' ' Text.Whitespace '{' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'String' Name.Class -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace 'Char' Name.Class -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'Array' Name.Class '[' Punctuation 't' Name ']' Punctuation -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace 't' Name -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'Iterable' Name.Class '[' Punctuation 't' Name ']' Punctuation -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace 't' Name -'\n' Text +'\n' Text.Whitespace '}' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace 'type' Keyword -' ' Text +' ' Text.Whitespace 'Concat' Name.Class '[' Punctuation 'Xs' Name.Class -' ' Text +' ' Text.Whitespace '<:' Operator -' ' Text +' ' Text.Whitespace 'Tuple' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace '+' Operator 'Ys' Name.Class -' ' Text +' ' Text.Whitespace '<:' Operator -' ' Text +' ' Text.Whitespace 'Tuple' Name.Class ']' Punctuation -' ' Text +' ' Text.Whitespace '<:' Operator -' ' Text +' ' Text.Whitespace 'Tuple' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'Xs' Name.Class -' ' Text +' ' Text.Whitespace 'match' Keyword -' ' Text +' ' Text.Whitespace '{' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'Unit' Name.Class -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace 'Ys' Name.Class -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace '*:' Operator -' ' Text +' ' Text.Whitespace 'xs' Name -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace '*:' Operator -' ' Text +' ' Text.Whitespace 'Concat' Name.Class '[' Punctuation 'xs' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'Ys' Name.Class ']' Punctuation -'\n' Text +'\n' Text.Whitespace '}' Punctuation -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/scala/new.scala.output b/tests/examplefiles/scala/new.scala.output index 809c2188..27b7fbcd 100644 --- a/tests/examplefiles/scala/new.scala.output +++ b/tests/examplefiles/scala/new.scala.output @@ -1,44 +1,44 @@ 'new' Keyword -' ' Text +' ' Text.Whitespace 'A' Name.Class -'\n' Text +'\n' Text.Whitespace 'new' Keyword -' ' Text +' ' Text.Whitespace '{' Punctuation -' ' Text +' ' Text.Whitespace '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'new' Keyword -' ' Text +' ' Text.Whitespace 'Foo' Name.Class -'\n' Text +'\n' Text.Whitespace 'new' Keyword -' ' Text +' ' Text.Whitespace 'foo' Name '.' Punctuation 'Foo' Name.Class -'\n' Text +'\n' Text.Whitespace 'new' Keyword -' ' Text +' ' Text.Whitespace 'Foo' Name.Class '.' Punctuation 'Foo' Name.Class -'\n' Text +'\n' Text.Whitespace 'new' Keyword -' ' Text +' ' Text.Whitespace 'A' Name.Class ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'f' Name.Function -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '3' Literal.Number.Integer -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/scala/operators.scala.output b/tests/examplefiles/scala/operators.scala.output index 19449e0e..b6342596 100644 --- a/tests/examplefiles/scala/operators.scala.output +++ b/tests/examplefiles/scala/operators.scala.output @@ -1,52 +1,52 @@ '1' Literal.Number.Integer -' ' Text +' ' Text.Whitespace '::' Operator -' ' Text +' ' Text.Whitespace '2' Literal.Number.Integer -' ' Text +' ' Text.Whitespace '::' Operator -' ' Text +' ' Text.Whitespace 'Nil' Name.Class -'\n' Text +'\n' Text.Whitespace 'a' Name -' ' Text +' ' Text.Whitespace '++' Operator -' ' Text +' ' Text.Whitespace 'b' Name -'\n' Text +'\n' Text.Whitespace 'a' Name -' ' Text +' ' Text.Whitespace ':+' Operator -' ' Text +' ' Text.Whitespace 'b' Name -'\n' Text +'\n' Text.Whitespace 'a' Name -' ' Text +' ' Text.Whitespace '+:' Operator -' ' Text +' ' Text.Whitespace 'b' Name -'\n' Text +'\n' Text.Whitespace 'a' Name -' ' Text +' ' Text.Whitespace ':++' Operator -' ' Text +' ' Text.Whitespace 'b' Name -'\n' Text +'\n' Text.Whitespace 'a' Name -' ' Text +' ' Text.Whitespace '++:' Operator -' ' Text +' ' Text.Whitespace 'b' Name -'\n' Text +'\n' Text.Whitespace 'a' Name -' ' Text +' ' Text.Whitespace '+' Operator -' ' Text +' ' Text.Whitespace 'b' Name -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/scala/package.scala.output b/tests/examplefiles/scala/package.scala.output index 79d03b7a..40acee66 100644 --- a/tests/examplefiles/scala/package.scala.output +++ b/tests/examplefiles/scala/package.scala.output @@ -1,14 +1,14 @@ 'package' Keyword -'\n' Text +'\n' Text.Whitespace '' Text 'package' Keyword -' ' Text +' ' Text.Whitespace 'com' Name '\n' Text 'package' Keyword -' ' Text +' ' Text.Whitespace 'com' Name.Namespace '.' Punctuation 'example' Name diff --git a/tests/examplefiles/scala/pattern-matching.scala.output b/tests/examplefiles/scala/pattern-matching.scala.output index 0a22da0c..35a3da3e 100644 --- a/tests/examplefiles/scala/pattern-matching.scala.output +++ b/tests/examplefiles/scala/pattern-matching.scala.output @@ -1,142 +1,142 @@ 'def' Keyword -' ' Text +' ' Text.Whitespace 'f' Name.Function '(' Punctuation 'x' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'y' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace 'match' Keyword -' ' Text +' ' Text.Whitespace '{' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace '`y`' Name -' ' Text +' ' Text.Whitespace '=>' Operator -' \n ' Text +' \n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 's' Name -' ' Text +' ' Text.Whitespace '@' Operator -' ' Text +' ' Text.Whitespace 'Seq' Name.Class '(' Punctuation '_' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '_' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '_' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=>' Operator -' \n ' Text +' \n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'Seq' Name.Class '(' Punctuation 'first' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'tail' Name -' ' Text +' ' Text.Whitespace '@' Operator -' ' Text +' ' Text.Whitespace '_*' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=>' Operator -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'first' Name -' ' Text +' ' Text.Whitespace '+:' Operator -' ' Text +' ' Text.Whitespace 'tail' Name -' ' Text +' ' Text.Whitespace '=>' Operator -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace '3' Literal.Number.Integer -' ' Text +' ' Text.Whitespace '|' Operator -' ' Text +' ' Text.Whitespace '5' Literal.Number.Integer -' ' Text +' ' Text.Whitespace '|' Operator -' ' Text +' ' Text.Whitespace '6' Literal.Number.Integer -' ' Text +' ' Text.Whitespace '=>' Operator -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'y' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Number' Name.Class -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace 'y' Name '.' Punctuation 'n' Name -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'Lit' Name.Class '(' Punctuation 'n' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace 'n' Name -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'IsZero' Name.Class '(' Punctuation 'u' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace 'eval' Name '(' Punctuation 'u' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '==' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace '_' Name -' ' Text +' ' Text.Whitespace '=>' Operator -' ' Text +' ' Text.Whitespace '15' Literal.Number.Integer -'\n' Text +'\n' Text.Whitespace '}' Punctuation -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/scala/quoted.scala.output b/tests/examplefiles/scala/quoted.scala.output index 755821c1..7a10653d 100644 --- a/tests/examplefiles/scala/quoted.scala.output +++ b/tests/examplefiles/scala/quoted.scala.output @@ -1,13 +1,13 @@ "'{" Punctuation -' ' Text +' ' Text.Whitespace '2' Literal.Number.Integer -' ' Text +' ' Text.Whitespace '}' Punctuation -'\n' Text +'\n' Text.Whitespace "'[" Punctuation -' ' Text +' ' Text.Whitespace 'String' Name.Class -' ' Text +' ' Text.Whitespace ']' Punctuation -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/scala/singleton-types.scala.output b/tests/examplefiles/scala/singleton-types.scala.output index dbfe9e47..3d87eada 100644 --- a/tests/examplefiles/scala/singleton-types.scala.output +++ b/tests/examplefiles/scala/singleton-types.scala.output @@ -1,89 +1,89 @@ 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace 'trait' Keyword -' ' Text +' ' Text.Whitespace 'Foo' Name.Class '[' Punctuation 'T' Name.Class -' ' Text +' ' Text.Whitespace '<:' Operator -' ' Text +' ' Text.Whitespace 'x' Name '.' Punctuation 'type' Keyword ']' Punctuation -'\n' Text +'\n' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'a' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'x' Name '.' Punctuation 'type' Keyword -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'b' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Foo' Name.Class '[' Punctuation 'x' Name '.' Punctuation 'type' Keyword ']' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n\n' Text +'\n\n' Text.Whitespace 'type' Keyword -' ' Text +' ' Text.Whitespace 'Test' Name.Class '[' Punctuation 'A' Name.Class ']' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'Int' Name.Class -'\n' Text +'\n' Text.Whitespace 'type' Keyword -' ' Text +' ' Text.Whitespace 'MyTest' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'Test' Name.Class '[' Punctuation '1' Literal.Number.Integer ']' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'one' Name ':' Punctuation -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/scala/soft-keywords.scala.output b/tests/examplefiles/scala/soft-keywords.scala.output index e8f3c5db..cc19e5fa 100644 --- a/tests/examplefiles/scala/soft-keywords.scala.output +++ b/tests/examplefiles/scala/soft-keywords.scala.output @@ -1,45 +1,45 @@ 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'open' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'true' Keyword.Constant -'\n' Text +'\n' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'inline' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'true' Keyword.Constant -'\n' Text +'\n' Text.Whitespace 'inline' Keyword -' ' Text +' ' Text.Whitespace 'xval' Name -'\n' Text +'\n' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'inline' Name -' ' Text +' ' Text.Whitespace '+' Operator -' ' Text +' ' Text.Whitespace '2' Literal.Number.Integer -'\n' Text +'\n' Text.Whitespace '(' Punctuation 'using' Name ')' Punctuation -'\n' Text +'\n' Text.Whitespace '(' Punctuation 'usingSomething' Name ')' Punctuation -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/scala/storage-modifiers.scala.output b/tests/examplefiles/scala/storage-modifiers.scala.output index a013e455..04f29419 100644 --- a/tests/examplefiles/scala/storage-modifiers.scala.output +++ b/tests/examplefiles/scala/storage-modifiers.scala.output @@ -1,25 +1,25 @@ 'private' Keyword -' ' Text +' ' Text.Whitespace 'object' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Class -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'private' Keyword '[' Punctuation 'com' Name ']' Punctuation -' ' Text +' ' Text.Whitespace 'object' Keyword -' ' Text +' ' Text.Whitespace 'b' Name.Class -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'private' Keyword '[' Punctuation @@ -27,37 +27,37 @@ '.' Punctuation 'example' Name ']' Punctuation -' ' Text +' ' Text.Whitespace 'object' Keyword -' ' Text +' ' Text.Whitespace 'c' Name.Class -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'protected' Keyword -' ' Text +' ' Text.Whitespace 'object' Keyword -' ' Text +' ' Text.Whitespace 'd' Name.Class -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'protected' Keyword '[' Punctuation 'com' Name ']' Punctuation -' ' Text +' ' Text.Whitespace 'object' Keyword -' ' Text +' ' Text.Whitespace 'e' Name.Class -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'protected' Keyword '[' Punctuation @@ -65,115 +65,115 @@ '.' Punctuation 'example' Name ']' Punctuation -' ' Text +' ' Text.Whitespace 'object' Keyword -' ' Text +' ' Text.Whitespace 'f' Name.Class -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'synchronized' Keyword -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'abstract' Keyword -' ' Text +' ' Text.Whitespace 'class' Keyword -' ' Text +' ' Text.Whitespace 'g' Name.Class -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'final' Keyword -' ' Text +' ' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'h' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace 'lazy' Keyword -' ' Text +' ' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'i' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace 'sealed' Keyword -' ' Text +' ' Text.Whitespace 'trait' Keyword -' ' Text +' ' Text.Whitespace 'j' Name.Class -'\n' Text +'\n' Text.Whitespace 'implicit' Keyword -' ' Text +' ' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'k' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace 'enum' Keyword -' ' Text +' ' Text.Whitespace 'm' Name.Class -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'inline' Keyword -' ' Text +' ' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'n' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace 'opaque' Keyword -' ' Text +' ' Text.Whitespace 'type' Keyword -' ' Text +' ' Text.Whitespace 'o' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'Unit' Name.Class -'\n' Text +'\n' Text.Whitespace '@volatile' Name.Decorator -' ' Text +' ' Text.Whitespace '@transient' Name.Decorator -' ' Text +' ' Text.Whitespace '@native' Name.Decorator -'\n' Text +'\n' Text.Whitespace 'override' Keyword -' ' Text +' ' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'p' Name.Function -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/scala/symbols.scala.output b/tests/examplefiles/scala/symbols.scala.output index 2a27f6fa..70475a54 100644 --- a/tests/examplefiles/scala/symbols.scala.output +++ b/tests/examplefiles/scala/symbols.scala.output @@ -1,41 +1,41 @@ '// Symbols:\n' Comment.Single "'*" Literal.String.Symbol -' ' Text +' ' Text.Whitespace '//test\n' Comment.Single "'*" Literal.String.Symbol -'\n' Text +'\n' Text.Whitespace "'symbol_*" Literal.String.Symbol -'\n' Text +'\n' Text.Whitespace "'symbol1" Literal.String.Symbol -' ' Text +' ' Text.Whitespace "//'\n" Comment.Single "'ξφδ" Literal.String.Symbol -'\n' Text +'\n' Text.Whitespace "'φδφ0" Literal.String.Symbol -'\n' Text +'\n' Text.Whitespace "'δφξφξ_+-" Literal.String.Symbol -'\n' Text +'\n' Text.Whitespace "'***" Literal.String.Symbol -'\n\n' Text +'\n\n' Text.Whitespace '// Not (just) symbols:\n' Comment.Single "'symbol" Literal.String.Symbol '*' Operator -'\n' Text +'\n' Text.Whitespace "'**" Literal.String.Symbol '_x' Name -' ' Text +' ' Text.Whitespace "//'\n" Comment.Single "'x'" Literal.String.Char -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/scala/type-operators.scala.output b/tests/examplefiles/scala/type-operators.scala.output index ff17f80b..111d7815 100644 --- a/tests/examplefiles/scala/type-operators.scala.output +++ b/tests/examplefiles/scala/type-operators.scala.output @@ -1,95 +1,95 @@ 'Type' Name.Class '[' Punctuation 'A' Name.Class -' ' Text +' ' Text.Whitespace 'with' Keyword -' ' Text +' ' Text.Whitespace '"user provided string"' Literal.String -' ' Text +' ' Text.Whitespace 'with' Keyword -' ' Text +' ' Text.Whitespace 'B' Name.Class ']' Punctuation -'\n' Text +'\n' Text.Whitespace 'def' Keyword -' ' Text +' ' Text.Whitespace 'help' Name.Function '(' Punctuation 'id' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'UserName' Name.Class -' ' Text +' ' Text.Whitespace '|' Operator -' ' Text +' ' Text.Whitespace 'Password' Name.Class ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'either' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Password' Name.Class -' ' Text +' ' Text.Whitespace '|' Operator -' ' Text +' ' Text.Whitespace 'UserName' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'both' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Object' Name.Class -' ' Text +' ' Text.Whitespace '&' Name -' ' Text +' ' Text.Whitespace 'Product' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace '<%' Operator -' ' Text +' ' Text.Whitespace '=:=' Operator -' ' Text +' ' Text.Whitespace '<:<' Operator -' ' Text +' ' Text.Whitespace '<%<' Operator -' ' Text +' ' Text.Whitespace '>:' Operator -' ' Text +' ' Text.Whitespace '<:' Operator -'\n' Text +'\n' Text.Whitespace '[' Punctuation 'X' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'Y' Name.Class ']' Punctuation -' ' Text +' ' Text.Whitespace '=>>' Operator -' ' Text +' ' Text.Whitespace 'Map' Name.Class '[' Punctuation 'Y' Name.Class ',' Punctuation -' ' Text +' ' Text.Whitespace 'X' Name.Class ']' Punctuation -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/scala/using.scala.output b/tests/examplefiles/scala/using.scala.output index 7e87d777..9005f444 100644 --- a/tests/examplefiles/scala/using.scala.output +++ b/tests/examplefiles/scala/using.scala.output @@ -1,93 +1,93 @@ 'def' Keyword -' ' Text +' ' Text.Whitespace 'f' Name.Function '(' Punctuation 'using' Keyword -' ' Text +' ' Text.Whitespace 'x' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Unit' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '(' Punctuation ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'f' Name '(' Punctuation 'using' Keyword -' ' Text +' ' Text.Whitespace '2' Literal.Number.Integer ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'f' Name '(' Punctuation 'using' Keyword -' ' Text +' ' Text.Whitespace '.2' Literal.Number.Float ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'class' Keyword -' ' Text +' ' Text.Whitespace 'A' Name.Class '(' Punctuation 'using' Keyword -' ' Text +' ' Text.Whitespace 'x' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'new' Keyword -' ' Text +' ' Text.Whitespace 'A' Name.Class '(' Punctuation 'using' Keyword -' ' Text +' ' Text.Whitespace '3' Literal.Number.Integer ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'f' Name '(' Punctuation 'using' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation ')' Punctuation ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'f' Name '(' Punctuation 'using' Keyword -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'f' Name '(' Punctuation 'using' Keyword -' ' Text +' ' Text.Whitespace "' '" Literal.String.Char ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'f' Name '(' Punctuation 'using' Keyword -' ' Text +' ' Text.Whitespace '""' Literal.String ')' Punctuation -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/scaml/test.scaml.output b/tests/examplefiles/scaml/test.scaml.output index 1f892d6c..f5097f15 100644 --- a/tests/examplefiles/scaml/test.scaml.output +++ b/tests/examplefiles/scaml/test.scaml.output @@ -1,31 +1,31 @@ '' Text.Whitespace '-@ ' Punctuation 'import' Keyword -' ' Text +' ' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'city' Name ':' Punctuation 'String' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '"Tampa"' Literal.String -'\n' Text +'\n' Text.Whitespace '' Text.Whitespace '-' Punctuation -' ' Text +' ' Text.Whitespace 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'name' Name ':' Punctuation 'String' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '"Hiram"' Literal.String -'\n' Text +'\n' Text.Whitespace '' Text.Whitespace '%html' Name.Tag @@ -53,23 +53,23 @@ ' ' Text.Whitespace '-' Punctuation -' ' Text +' ' Text.Whitespace 'for' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation -' ' Text +' ' Text.Whitespace 'i' Name -' ' Text +' ' Text.Whitespace '<-' Operator -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer -' ' Text +' ' Text.Whitespace 'to' Name -' ' Text +' ' Text.Whitespace '10' Literal.Number.Integer -' ' Text +' ' Text.Whitespace ')' Punctuation -'\n' Text +'\n' Text.Whitespace ' ' Text.Whitespace '%li' Name.Tag diff --git a/tests/snippets/scala/test_colon_colon_function_name.txt b/tests/snippets/scala/test_colon_colon_function_name.txt index eeebed2e..8840fff2 100644 --- a/tests/snippets/scala/test_colon_colon_function_name.txt +++ b/tests/snippets/scala/test_colon_colon_function_name.txt @@ -3,31 +3,31 @@ def ::(xs: List[T]): List[T] = ::(x, xs) ---tokens--- 'def' Keyword -' ' Text +' ' Text.Whitespace '::' Name.Function '(' Punctuation 'xs' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'List' Name.Class '[' Punctuation 'T' Name.Class ']' Punctuation ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'List' Name.Class '[' Punctuation 'T' Name.Class ']' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '::' Name '(' Punctuation 'x' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'xs' Name ')' Punctuation -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/scala/test_default_parameter.txt b/tests/snippets/scala/test_default_parameter.txt index a82e5a06..16ce948e 100644 --- a/tests/snippets/scala/test_default_parameter.txt +++ b/tests/snippets/scala/test_default_parameter.txt @@ -3,35 +3,35 @@ def f(using y: Char = if true then 'a' else 2): Int = ??? ---tokens--- 'def' Keyword -' ' Text +' ' Text.Whitespace 'f' Name.Function '(' Punctuation 'using' Keyword -' ' Text +' ' Text.Whitespace 'y' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Char' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'true' Keyword.Constant -' ' Text +' ' Text.Whitespace 'then' Keyword -' ' Text +' ' Text.Whitespace "'a'" Literal.String.Char -' ' Text +' ' Text.Whitespace 'else' Keyword -' ' Text +' ' Text.Whitespace '2' Literal.Number.Integer ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/scala/test_end_val.txt b/tests/snippets/scala/test_end_val.txt index 112cfafa..43ac172c 100644 --- a/tests/snippets/scala/test_end_val.txt +++ b/tests/snippets/scala/test_end_val.txt @@ -3,6 +3,6 @@ end val ---tokens--- 'end' Keyword -' ' Text +' ' Text.Whitespace 'val' Keyword -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/scala/test_end_valx.txt b/tests/snippets/scala/test_end_valx.txt index e72c4041..e1d17d71 100644 --- a/tests/snippets/scala/test_end_valx.txt +++ b/tests/snippets/scala/test_end_valx.txt @@ -3,6 +3,6 @@ end valx ---tokens--- 'end' Keyword -' ' Text +' ' Text.Whitespace 'valx' Name.Namespace -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/scala/test_float_with_exponents.txt b/tests/snippets/scala/test_float_with_exponents.txt index 9a702431..d64ee633 100644 --- a/tests/snippets/scala/test_float_with_exponents.txt +++ b/tests/snippets/scala/test_float_with_exponents.txt @@ -3,10 +3,10 @@ ---tokens--- '.1e12' Literal.Number.Float -' ' Text +' ' Text.Whitespace '.1e+34' Literal.Number.Float -' ' Text +' ' Text.Whitespace '.1e-56' Literal.Number.Float -' ' Text +' ' Text.Whitespace '.1e12f' Literal.Number.Float -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/scala/test_function_operator_name.txt b/tests/snippets/scala/test_function_operator_name.txt index a1823f03..72c375d4 100644 --- a/tests/snippets/scala/test_function_operator_name.txt +++ b/tests/snippets/scala/test_function_operator_name.txt @@ -3,16 +3,16 @@ def < (y: String): Boolean ---tokens--- 'def' Keyword -' ' Text +' ' Text.Whitespace '<' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation 'y' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'String' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Boolean' Name.Class -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/scala/test_import_path.txt b/tests/snippets/scala/test_import_path.txt index fc8e5a2c..3e06d1fa 100644 --- a/tests/snippets/scala/test_import_path.txt +++ b/tests/snippets/scala/test_import_path.txt @@ -3,7 +3,7 @@ import a.b.c ---tokens--- 'import' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Namespace '.' Punctuation 'b' Name.Namespace diff --git a/tests/snippets/scala/test_invalid_symbol_and_invalid_char.txt b/tests/snippets/scala/test_invalid_symbol_and_invalid_char.txt index 9af24e53..ccaae59c 100644 --- a/tests/snippets/scala/test_invalid_symbol_and_invalid_char.txt +++ b/tests/snippets/scala/test_invalid_symbol_and_invalid_char.txt @@ -4,5 +4,5 @@ ---tokens--- "'" Error '1' Literal.Number.Integer -' ' Text +' ' Text.Whitespace "//'\n" Comment.Single diff --git a/tests/snippets/scala/test_open_soft_keyword.txt b/tests/snippets/scala/test_open_soft_keyword.txt index 800880ee..903be71d 100644 --- a/tests/snippets/scala/test_open_soft_keyword.txt +++ b/tests/snippets/scala/test_open_soft_keyword.txt @@ -3,10 +3,10 @@ val open = true ---tokens--- 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'open' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'true' Keyword.Constant -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/scala/test_package_name.txt b/tests/snippets/scala/test_package_name.txt index 6b1f3482..53633e2c 100644 --- a/tests/snippets/scala/test_package_name.txt +++ b/tests/snippets/scala/test_package_name.txt @@ -3,9 +3,9 @@ package p1.p2: ---tokens--- 'package' Keyword -' ' Text +' ' Text.Whitespace 'p1' Name.Namespace '.' Punctuation 'p2' Name ':' Punctuation -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/scala/test_prepend_operator.txt b/tests/snippets/scala/test_prepend_operator.txt index db850479..cf7b2f97 100644 --- a/tests/snippets/scala/test_prepend_operator.txt +++ b/tests/snippets/scala/test_prepend_operator.txt @@ -3,8 +3,8 @@ a +: b ---tokens--- 'a' Name -' ' Text +' ' Text.Whitespace '+:' Operator -' ' Text +' ' Text.Whitespace 'b' Name -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/scala/test_qualified_name.txt b/tests/snippets/scala/test_qualified_name.txt index 8a1f06ff..a004410c 100644 --- a/tests/snippets/scala/test_qualified_name.txt +++ b/tests/snippets/scala/test_qualified_name.txt @@ -7,4 +7,4 @@ a.b.c 'b' Name '.' Punctuation 'c' Name -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/scala/test_qualified_name_class.txt b/tests/snippets/scala/test_qualified_name_class.txt index b9d47c94..7345092a 100644 --- a/tests/snippets/scala/test_qualified_name_class.txt +++ b/tests/snippets/scala/test_qualified_name_class.txt @@ -7,4 +7,4 @@ a.b.C 'b' Name '.' Punctuation 'C' Name.Class -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/scala/test_script_header.txt b/tests/snippets/scala/test_script_header.txt index f15ded80..6d96fd69 100644 --- a/tests/snippets/scala/test_script_header.txt +++ b/tests/snippets/scala/test_script_header.txt @@ -3,4 +3,4 @@ ---tokens--- '#!/usr/bin/scala' Comment.Hashbang -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/scala/test_symbol_followed_by_op.txt b/tests/snippets/scala/test_symbol_followed_by_op.txt index 5d8a14f5..518abce2 100644 --- a/tests/snippets/scala/test_symbol_followed_by_op.txt +++ b/tests/snippets/scala/test_symbol_followed_by_op.txt @@ -4,4 +4,4 @@ symbol* ---tokens--- 'symbol' Name '*' Operator -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/scala/test_symbol_name_ending_with_star.txt b/tests/snippets/scala/test_symbol_name_ending_with_star.txt index bb1d987f..25e5dc63 100644 --- a/tests/snippets/scala/test_symbol_name_ending_with_star.txt +++ b/tests/snippets/scala/test_symbol_name_ending_with_star.txt @@ -3,4 +3,4 @@ symbol_* ---tokens--- 'symbol_*' Name -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/scala/test_underscore_name.txt b/tests/snippets/scala/test_underscore_name.txt index f27754fd..f7a24af1 100644 --- a/tests/snippets/scala/test_underscore_name.txt +++ b/tests/snippets/scala/test_underscore_name.txt @@ -3,10 +3,10 @@ val head = _head ---tokens--- 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'head' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '_head' Name -'\n' Text +'\n' Text.Whitespace |