From 202426c3acc1674ef6dfd0ecf9d3515514c49f89 Mon Sep 17 00:00:00 2001 From: matkuki Date: Sat, 24 Sep 2022 21:33:45 +0200 Subject: [PATCH] Update nimrod.py lexer (#1970) Co-authored-by: Jean Abou-Samra --- pygments/lexers/nimrod.py | 65 +- tests/examplefiles/nim/example.nim.output | 4673 +++++++++++---------- tests/examplefiles/nim/test.nim | 31 +- tests/examplefiles/nim/test.nim.output | 597 ++- 4 files changed, 2696 insertions(+), 2670 deletions(-) diff --git a/pygments/lexers/nimrod.py b/pygments/lexers/nimrod.py index 7a05ed6401..4d773288d9 100644 --- a/pygments/lexers/nimrod.py +++ b/pygments/lexers/nimrod.py @@ -10,7 +10,7 @@ import re -from pygments.lexer import RegexLexer, include, default +from pygments.lexer import RegexLexer, include, default, bygroups from pygments.token import Text, Comment, Operator, Keyword, Name, String, \ Number, Punctuation, Error @@ -47,10 +47,10 @@ def underscorize(words): 'addr', 'and', 'as', 'asm', 'bind', 'block', 'break', 'case', 'cast', 'concept', 'const', 'continue', 'converter', 'defer', 'discard', 'distinct', 'div', 'do', 'elif', 'else', 'end', 'enum', 'except', - 'export', 'finally', 'for', 'func', 'if', 'in', 'yield', 'interface', - 'is', 'isnot', 'iterator', 'let', 'macro', 'method', 'mixin', 'mod', - 'not', 'notin', 'object', 'of', 'or', 'out', 'proc', 'ptr', 'raise', - 'ref', 'return', 'shl', 'shr', 'static', 'template', 'try', + 'export', 'finally', 'for', 'if', 'in', 'yield', 'interface', + 'is', 'isnot', 'iterator', 'let', 'mixin', 'mod', + 'not', 'notin', 'object', 'of', 'or', 'out', 'ptr', 'raise', + 'ref', 'return', 'shl', 'shr', 'static', 'try', 'tuple', 'type', 'using', 'when', 'while', 'xor' ] @@ -70,31 +70,45 @@ def underscorize(words): tokens = { 'root': [ + # Comments + (r'##\[', String.Doc, 'doccomment'), (r'##.*$', String.Doc), + (r'#\[', Comment.Multiline, 'comment'), (r'#.*$', Comment), + + # Pragmas + (r'\{\.', String.Other, 'pragma'), + + # Operators (r'[*=><+\-/@$~&%!?|\\\[\]]', Operator), (r'\.\.|\.|,|\[\.|\.\]|\{\.|\.\}|\(\.|\.\)|\{|\}|\(|\)|:|\^|`|;', Punctuation), - + + # Case statement branch + (r'(\n\s*)(of)(\s)', bygroups(Text.Whitespace, Keyword, Text.Whitespace), 'casebranch'), + # Strings (r'(?:[\w]+)"', String, 'rdqs'), - (r'"""', String, 'tdqs'), + (r'"""', String.Double, 'tdqs'), ('"', String, 'dqs'), - + # Char ("'", String.Char, 'chars'), # Keywords (r'(%s)\b' % underscorize(opWords), Operator.Word), - (r'(p_?r_?o_?c_?\s)(?![(\[\]])', Keyword, 'funcname'), + (r'(proc|func|method|macro|template)(\s)(?![(\[\]])', + bygroups(Keyword, Text.Whitespace), 'funcname'), (r'(%s)\b' % underscorize(keywords), Keyword), (r'(%s)\b' % underscorize(['from', 'import', 'include', 'export']), Keyword.Namespace), (r'(v_?a_?r)\b', Keyword.Declaration), (r'(%s)\b' % underscorize(types), Name.Builtin), (r'(%s)\b' % underscorize(keywordsPseudo), Keyword.Pseudo), + # Identifiers (r'\b((?![_\d])\w)(((?!_)\w)|(_(?!_)\w))*', Name), + # Numbers (r'[0-9][0-9_]*(?=([e.]|\'f(32|64)))', Number.Float, ('float-suffix', 'float-number')), @@ -102,8 +116,9 @@ def underscorize(words): (r'0b[01][01_]*', Number.Bin, 'int-suffix'), (r'0o[0-7][0-7_]*', Number.Oct, 'int-suffix'), (r'[0-9][0-9_]*', Number.Integer, 'int-suffix'), + # Whitespace - (r'\s+', Text), + (r'\s+', Text.Whitespace), (r'.+$', Error), ], 'chars': [ @@ -120,6 +135,18 @@ def underscorize(words): (r'\$', String) # newlines are an error (use "nl" state) ], + 'doccomment': [ + (r'[^\]#]+', String.Doc), + (r'##\[', String.Doc, '#push'), + (r'\]##', String.Doc, '#pop'), + (r'[\]#]', String.Doc), + ], + 'comment': [ + (r'[^\]#]+', Comment.Multiline), + (r'#\[', Comment.Multiline, '#push'), + (r'\]#', Comment.Multiline, '#pop'), + (r'[\]#]', Comment.Multiline), + ], 'dqs': [ (r'\\([\\abcefnrtvl"\']|\n|x[a-f0-9]{2}|[0-9]{1,3})', String.Escape), @@ -132,9 +159,9 @@ def underscorize(words): include('strings') ], 'tdqs': [ - (r'"""(?!")', String, '#pop'), + (r'"""', String.Double, '#pop'), include('strings'), - include('nl') + (r'\n', String.Double) ], 'funcname': [ (r'((?![\d_])\w)(((?!_)\w)|(_(?!_)\w))*', Name.Function, '#pop'), @@ -144,7 +171,7 @@ def underscorize(words): (r'\n', String) ], 'float-number': [ - (r'\.(?!\.)[0-9_]*', Number.Float), + (r'\.(?!\.)[0-9_]*[f]*', Number.Float), (r'e[+-]?[0-9][0-9_]*', Number.Float), default('#pop') ], @@ -157,4 +184,16 @@ def underscorize(words): (r'\'i(8|16)', Number.Integer), default('#pop') ], + 'casebranch': [ + (r',', Punctuation), + (r'[\n ]+', Text.Whitespace), + (r':', Operator, '#pop'), + (r'\w+|[^:]', Name.Label), + ], + 'pragma': [ + (r'[:,]', Text), + (r'[\n ]+', Text.Whitespace), + (r'\.\}', String.Other, '#pop'), + (r'\w+|\W+|[^.}]', String.Other), + ], } diff --git a/tests/examplefiles/nim/example.nim.output b/tests/examplefiles/nim/example.nim.output index fd675b5c07..99e65c20df 100644 --- a/tests/examplefiles/nim/example.nim.output +++ b/tests/examplefiles/nim/example.nim.output @@ -1,218 +1,218 @@ 'import' Keyword.Namespace -' ' Text +' ' Text.Whitespace 'glib2' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'gtk2' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'gdk2' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'gtksourceview' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'dialogs' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'os' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'pango' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'osproc' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'strutils' Name -'\n' Text +'\n' Text.Whitespace 'import' Keyword.Namespace -' ' Text +' ' Text.Whitespace 'pegs' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'streams' Name -'\n' Text +'\n' Text.Whitespace 'import' Keyword.Namespace -' ' Text +' ' Text.Whitespace 'settings' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'types' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'cfg' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'search' Name -'\n\n' Text +'\n\n' Text.Whitespace -'{.' Punctuation -'push' Name -' ' Text -'callConv' Name -':' Punctuation -'cdecl' Name -'.' Punctuation -'}' Punctuation -'\n\n' Text +'{.' Literal.String.Other +'push' Literal.String.Other +' ' Text.Whitespace +'callConv' Literal.String.Other +':' Text +'cdecl' Literal.String.Other +'.}' Literal.String.Other +'\n\n' Text.Whitespace 'const' Keyword -'\n ' Text +'\n ' Text.Whitespace 'NimrodProjectExt' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String '.nimprj' Literal.String '"' Literal.String -'\n\n' Text +'\n\n' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'win' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'types' Name '.' Punctuation 'MainWin' Name -'\n' Text +'\n' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '@' Operator '[' Operator ']' Operator -'\n\n' Text +'\n\n' Text.Whitespace 'search' Name '.' Punctuation 'win' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'addr' Keyword '(' Punctuation 'win' Name ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'lastSession' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'seq' Name.Builtin '[' Operator 'string' Name.Builtin ']' Operator -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '@' Operator '[' Operator ']' Operator -'\n\n' Text +'\n\n' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'confParseFail' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo -' ' Text +' ' Text.Whitespace '# This gets set to true' Comment -'\n ' Text +'\n ' Text.Whitespace '# When there is an error parsing the config' Comment -'\n\n' Text +'\n\n' Text.Whitespace '# Load the settings' Comment -'\n' Text +'\n' Text.Whitespace 'try' Keyword ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'settings' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'cfg' Name '.' Punctuation 'load' Name '(' Punctuation 'lastSession' Name ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'except' Keyword -' ' Text +' ' Text.Whitespace 'ECFGParse' Name ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace '# TODO: Make the dialog show the exception' Comment -'\n ' Text +'\n ' Text.Whitespace 'confParseFail' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'True' Keyword.Pseudo -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'settings' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'cfg' Name '.' Punctuation 'defaultSettings' Name '(' Punctuation ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'except' Keyword -' ' Text +' ' Text.Whitespace 'EIO' Name ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'settings' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'cfg' Name '.' Punctuation 'defaultSettings' Name '(' Punctuation ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'getProjectTab' Name.Function '(' Punctuation ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'int' Name.Builtin -' ' Text +' ' Text.Whitespace '=' Operator -' \n ' Text +' \n ' Text.Whitespace 'for' Keyword -' ' Text +' ' Text.Whitespace 'i' Name -' ' Text +' ' Text.Whitespace 'in' Operator.Word -' ' Text +' ' Text.Whitespace '0' Literal.Number.Float '..' Punctuation 'high' Name @@ -222,9 +222,9 @@ 'tabs' Name ')' Punctuation ':' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'tabs' Name @@ -239,42 +239,43 @@ 'NimrodProjectExt' Name ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'i' Name -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'saveTab' Name.Function '(' Punctuation 'tabNr' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'int' Name.Builtin ',' Punctuation -' ' Text +' ' Text.Whitespace 'startpath' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'string' Name.Builtin ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'tabNr' Name -' ' Text +' ' Text.Whitespace '<' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ':' Punctuation -' ' Text +' ' Text.Whitespace 'return' Keyword -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -284,20 +285,20 @@ '.' Punctuation 'saved' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'return' Keyword -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'path' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String '"' Literal.String -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -306,37 +307,37 @@ ']' Operator '.' Punctuation 'filename' Name -' ' Text +' ' Text.Whitespace '=' Operator '=' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String '"' Literal.String ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'path' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'ChooseFileToSave' Name '(' Punctuation 'win' Name '.' Punctuation 'w' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'startpath' Name ')' Punctuation -' \n ' Text +' \n ' Text.Whitespace '# dialogs.nim STOCK_OPEN instead of STOCK_SAVE' Comment -'\n ' Text +'\n ' Text.Whitespace 'else' Keyword ':' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'path' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -345,24 +346,24 @@ ']' Operator '.' Punctuation 'filename' Name -'\n \n ' Text +'\n \n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'path' Name -' ' Text +' ' Text.Whitespace '!' Operator '=' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String '"' Literal.String ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'buffer' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'PTextBuffer' Name '(' Punctuation 'win' Name @@ -374,16 +375,16 @@ '.' Punctuation 'buffer' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '# Get the text from the TextView' Comment -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'startIter' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'TTextIter' Name -'\n ' Text +'\n ' Text.Whitespace 'buffer' Name '.' Punctuation 'getStartIter' Name @@ -393,14 +394,14 @@ 'startIter' Name ')' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'endIter' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'TTextIter' Name -'\n ' Text +'\n ' Text.Whitespace 'buffer' Name '.' Punctuation 'getEndIter' Name @@ -410,13 +411,13 @@ 'endIter' Name ')' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'text' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'buffer' Name '.' Punctuation 'getText' Name @@ -426,69 +427,69 @@ 'startIter' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'addr' Keyword '(' Punctuation 'endIter' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '# Save it to a file' Comment -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'f' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'TFile' Name -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'open' Name '(' Punctuation 'f' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'path' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'fmWrite' Name ')' Punctuation ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'f' Name '.' Punctuation 'write' Name '(' Punctuation 'text' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'f' Name '.' Punctuation 'close' Name '(' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'win' Name '.' Punctuation 'tempStuff' Name '.' Punctuation 'lastSaveDir' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'splitFile' Name '(' Punctuation 'path' Name ')' Punctuation '.' Punctuation 'dir' Name -'\n \n ' Text +'\n \n ' Text.Whitespace '# Change the tab name and .Tabs.filename etc.' Comment -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -497,11 +498,11 @@ ']' Operator '.' Punctuation 'filename' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'path' Name -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -510,35 +511,35 @@ ']' Operator '.' Punctuation 'saved' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'True' Keyword.Pseudo -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'name' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'extractFilename' Name '(' Punctuation 'path' Name ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'cTab' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name '[' Operator 'tabNr' Name ']' Operator -'\n ' Text +'\n ' Text.Whitespace 'cTab' Name '.' Punctuation 'label' Name @@ -547,36 +548,37 @@ '(' Punctuation 'name' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'else' Keyword ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'error' Name '(' Punctuation 'win' Name '.' Punctuation 'w' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'Unable to write to file' Literal.String '"' Literal.String ')' Punctuation -' \n\n' Text +' \n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'saveAllTabs' Name.Function '(' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'for' Keyword -' ' Text +' ' Text.Whitespace 'i' Name -' ' Text +' ' Text.Whitespace 'in' Operator.Word -' ' Text +' ' Text.Whitespace '0' Literal.Number.Float '..' Punctuation 'high' Name @@ -586,12 +588,12 @@ 'tabs' Name ')' Punctuation ':' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'saveTab' Name '(' Punctuation 'i' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'os' Name '.' Punctuation 'splitFile' Name @@ -608,46 +610,46 @@ '.' Punctuation 'dir' Name ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace '# GTK Events' Comment -'\n' Text +'\n' Text.Whitespace '# -- w(PWindow)' Comment -'\n' Text +'\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'destroy' Name.Function '(' Punctuation 'widget' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PWidget' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text -'{.' Punctuation -'cdecl' Name -'.' Punctuation -'}' Punctuation -' ' Text +' ' Text.Whitespace +'{.' Literal.String.Other +'cdecl' Literal.String.Other +'.}' Literal.String.Other +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace '# gather some settings' Comment -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'settings' Name '.' Punctuation 'VPanedPos' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'PPaned' Name '(' Punctuation 'win' Name @@ -662,15 +664,15 @@ 'getPosition' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'settings' Name '.' Punctuation 'winWidth' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'w' Name @@ -678,15 +680,15 @@ 'allocation' Name '.' Punctuation 'width' Name -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'settings' Name '.' Punctuation 'winHeight' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'w' Name @@ -694,62 +696,63 @@ 'allocation' Name '.' Punctuation 'height' Name -'\n\n ' Text +'\n\n ' Text.Whitespace '# save the settings' Comment -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'save' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '# then quit' Comment -'\n ' Text +'\n ' Text.Whitespace 'main_quit' Name '(' Punctuation ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'delete_event' Name.Function '(' Punctuation 'widget' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PWidget' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'event' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PEvent' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'bool' Name.Builtin -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'quit' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'True' Keyword.Pseudo -'\n ' Text +'\n ' Text.Whitespace 'for' Keyword -' ' Text +' ' Text.Whitespace 'i' Name -' ' Text +' ' Text.Whitespace 'in' Operator.Word -' ' Text +' ' Text.Whitespace 'low' Name '(' Punctuation 'win' Name @@ -766,11 +769,11 @@ '-' Operator '1' Literal.Number.Integer ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'not' Operator.Word -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -780,50 +783,50 @@ '.' Punctuation 'saved' Name ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'askSave' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'dialogNewWithButtons' Name '(' Punctuation '"' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'w' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ',' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'STOCK_SAVE' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'RESPONSE_ACCEPT' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'STOCK_CANCEL' Name ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'RESPONSE_CANCEL' Name ',' Punctuation -'\n ' Text +'\n ' Text.Whitespace '"' Literal.String 'Close without saving' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'RESPONSE_REJECT' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'askSave' Name '.' Punctuation 'setTransientFor' Name @@ -832,15 +835,15 @@ '.' Punctuation 'w' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '# TODO: Make this dialog look better' Comment -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'label' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'labelNew' Name '(' Punctuation 'win' Name @@ -851,14 +854,14 @@ ']' Operator '.' Punctuation 'filename' Name -' ' Text +' ' Text.Whitespace '&' Operator -' \n ' Text +' \n ' Text.Whitespace '"' Literal.String ' is unsaved, would you like to save it ?' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'PBox' Name '(' Punctuation 'askSave' Name @@ -870,34 +873,34 @@ '(' Punctuation 'label' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'label' Name '.' Punctuation 'show' Name '(' Punctuation ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'resp' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'askSave' Name '.' Punctuation 'run' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'gtk2' Name '.' Punctuation 'destroy' Name @@ -907,21 +910,21 @@ 'askSave' Name ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'resp' Name -'\n ' Text +'\n ' Text.Whitespace 'of' Keyword -' ' Text -'RESPONSE_ACCEPT' Name -':' Punctuation -'\n ' Text +' ' Text.Whitespace +'RESPONSE_ACCEPT' Name.Label +':' Operator +'\n ' Text.Whitespace 'saveTab' Name '(' Punctuation 'i' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'os' Name '.' Punctuation 'splitFile' Name @@ -938,155 +941,156 @@ '.' Punctuation 'dir' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'quit' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'True' Keyword.Pseudo -'\n ' Text +'\n ' Text.Whitespace 'of' Keyword -' ' Text -'RESPONSE_CANCEL' Name -':' Punctuation -'\n ' Text +' ' Text.Whitespace +'RESPONSE_CANCEL' Name.Label +':' Operator +'\n ' Text.Whitespace 'quit' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo -'\n ' Text +'\n ' Text.Whitespace 'break' Keyword -'\n ' Text +'\n ' Text.Whitespace 'of' Keyword -' ' Text -'RESPONSE_REJECT' Name -':' Punctuation -'\n ' Text +' ' Text.Whitespace +'RESPONSE_REJECT' Name.Label +':' Operator +'\n ' Text.Whitespace 'quit' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'True' Keyword.Pseudo -'\n ' Text +'\n ' Text.Whitespace 'else' Keyword ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'quit' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo -'\n ' Text +'\n ' Text.Whitespace 'break' Keyword -'\n\n ' Text +'\n\n ' Text.Whitespace '# If False is returned the window will close' Comment -'\n ' Text +'\n ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'not' Operator.Word -' ' Text +' ' Text.Whitespace 'quit' Name -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'windowState_Changed' Name.Function '(' Punctuation 'widget' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PWidget' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'event' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PEventWindowState' Name ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'settings' Name '.' Punctuation 'winMaximized' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '(' Punctuation 'event' Name '.' Punctuation 'newWindowState' Name -' ' Text +' ' Text.Whitespace 'and' Operator.Word -' \n ' Text +' \n ' Text.Whitespace 'WINDOW_STATE_MAXIMIZED' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '!' Operator '=' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer -'\n\n' Text +'\n\n' Text.Whitespace '# -- SourceView(PSourceView) & SourceBuffer' Comment -'\n' Text +'\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'updateStatusBar' Name.Function '(' Punctuation 'buffer' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PTextBuffer' Name ')' Punctuation -'{.' Punctuation -'cdecl' Name -'.' Punctuation -'}' Punctuation -' ' Text +'{.' Literal.String.Other +'cdecl' Literal.String.Other +'.}' Literal.String.Other +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace '# Incase this event gets fired before' Comment -'\n ' Text +'\n ' Text.Whitespace '# bottomBar is initialized' Comment -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'bottomBar' Name -' ' Text +' ' Text.Whitespace '!' Operator '=' Operator -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo -' ' Text +' ' Text.Whitespace 'and' Operator.Word -' ' Text +' ' Text.Whitespace 'not' Operator.Word -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'tempStuff' Name '.' Punctuation 'stopSBUpdates' Name ':' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'iter' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'TTextIter' Name -'\n \n ' Text +'\n \n ' Text.Whitespace 'win' Name '.' Punctuation 'bottomBar' Name @@ -1095,7 +1099,7 @@ '(' Punctuation '0' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'buffer' Name '.' Punctuation 'getIterAtMark' Name @@ -1105,20 +1109,20 @@ 'iter' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'buffer' Name '.' Punctuation 'getInsert' Name '(' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'row' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'getLine' Name '(' Punctuation 'addr' Keyword @@ -1126,17 +1130,17 @@ 'iter' Name ')' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace '+' Operator -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'col' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'getLineOffset' Name '(' Punctuation 'addr' Keyword @@ -1144,9 +1148,9 @@ 'iter' Name ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'bottomBar' Name @@ -1155,87 +1159,88 @@ '(' Punctuation '0' Literal.Number.Integer ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'Line: ' Literal.String '"' Literal.String -' ' Text +' ' Text.Whitespace '&' Operator -' ' Text +' ' Text.Whitespace '$' Operator 'row' Name -' ' Text +' ' Text.Whitespace '&' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String ' Column: ' Literal.String '"' Literal.String -' ' Text +' ' Text.Whitespace '&' Operator -' ' Text +' ' Text.Whitespace '$' Operator 'col' Name ')' Punctuation -'\n \n' Text +'\n \n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'cursorMoved' Name.Function '(' Punctuation 'buffer' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PTextBuffer' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'location' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PTextIter' Name ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'mark' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PTextMark' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -'{.' Punctuation -'cdecl' Name -'.' Punctuation -'}' Punctuation -' ' Text +'{.' Literal.String.Other +'cdecl' Literal.String.Other +'.}' Literal.String.Other +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'updateStatusBar' Name '(' Punctuation 'buffer' Name ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'onCloseTab' Name.Function '(' Punctuation 'btn' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PButton' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PWidget' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'sourceViewTabs' Name @@ -1243,18 +1248,18 @@ 'getNPages' Name '(' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace '>' Operator -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'tab' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'sourceViewTabs' Name @@ -1263,7 +1268,7 @@ '(' Punctuation 'user_data' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'sourceViewTabs' Name @@ -1272,7 +1277,7 @@ '(' Punctuation 'tab' Name ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -1281,39 +1286,40 @@ '(' Punctuation 'tab' Name ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'onSwitchTab' Name.Function '(' Punctuation 'notebook' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PNotebook' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'page' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PNotebookPage' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'pageNum' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'guint' Name ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -1323,13 +1329,13 @@ ')' Punctuation '-' Operator '1' Literal.Number.Integer -' ' Text +' ' Text.Whitespace '>' Operator '=' Operator -' ' Text +' ' Text.Whitespace 'pageNum' Name ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'w' Name @@ -1339,9 +1345,9 @@ '"' Literal.String 'Aporia IDE - ' Literal.String '"' Literal.String -' ' Text +' ' Text.Whitespace '&' Operator -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -1351,253 +1357,255 @@ '.' Punctuation 'filename' Name ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'createTabLabel' Name.Function '(' Punctuation 'name' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'string' Name.Builtin ',' Punctuation -' ' Text +' ' Text.Whitespace 't_child' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PWidget' Name ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'tuple' Keyword '[' Operator 'box' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PWidget' Name ',' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'label' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PLabel' Name ']' Operator -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'box' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'hboxNew' Name '(' Punctuation 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'label' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'labelNew' Name '(' Punctuation 'name' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'closebtn' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'buttonNew' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'closeBtn' Name '.' Punctuation 'setLabel' Name '(' Punctuation 'nil' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'iconSize' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'iconSizeFromName' Name '(' Punctuation '"' Literal.String 'tabIconSize' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'iconSize' Name -' ' Text +' ' Text.Whitespace '=' Operator '=' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'iconSize' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'iconSizeRegister' Name '(' Punctuation '"' Literal.String 'tabIconSize' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace '10' Literal.Number.Integer ',' Punctuation -' ' Text +' ' Text.Whitespace '10' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'image' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'imageNewFromStock' Name '(' Punctuation 'STOCK_CLOSE' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'iconSize' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'gSignalConnect' Name '(' Punctuation 'closebtn' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'clicked' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'G_Callback' Name '(' Punctuation 'onCloseTab' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 't_child' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'closebtn' Name '.' Punctuation 'setImage' Name '(' Punctuation 'image' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'gtk2' Name '.' Punctuation 'setRelief' Name '(' Punctuation 'closebtn' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'RELIEF_NONE' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'box' Name '.' Punctuation 'packStart' Name '(' Punctuation 'label' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'True' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'True' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'box' Name '.' Punctuation 'packEnd' Name '(' Punctuation 'closebtn' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'box' Name '.' Punctuation 'showAll' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation 'box' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'label' Name ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'changed' Name.Function '(' Punctuation 'buffer' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PTextBuffer' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace "# Update the 'Line & Column'" Comment -'\n ' Text +'\n ' Text.Whitespace '#updateStatusBar(buffer)' Comment -'\n\n ' Text +'\n\n ' Text.Whitespace "# Change the tabs state to 'unsaved'" Comment -'\n ' Text +'\n ' Text.Whitespace "# and add '*' to the Tab Name" Comment -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'current' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'SourceViewTabs' Name @@ -1605,18 +1613,18 @@ 'getCurrentPage' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'name' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String '"' Literal.String -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -1625,14 +1633,14 @@ ']' Operator '.' Punctuation 'filename' Name -' ' Text +' ' Text.Whitespace '=' Operator '=' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String '"' Literal.String ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -1641,22 +1649,22 @@ ']' Operator '.' Punctuation 'saved' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo -'\n ' Text +'\n ' Text.Whitespace 'name' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String 'Untitled *' Literal.String '"' Literal.String -'\n ' Text +'\n ' Text.Whitespace 'else' Keyword ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -1665,15 +1673,15 @@ ']' Operator '.' Punctuation 'saved' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo -'\n ' Text +'\n ' Text.Whitespace 'name' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'extractFilename' Name '(' Punctuation 'win' Name @@ -1685,26 +1693,26 @@ '.' Punctuation 'filename' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '&' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String ' *' Literal.String '"' Literal.String -'\n \n ' Text +'\n \n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'cTab' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name '[' Operator 'current' Name ']' Operator -'\n ' Text +'\n ' Text.Whitespace 'cTab' Name '.' Punctuation 'label' Name @@ -1713,85 +1721,86 @@ '(' Punctuation 'name' Name ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace '# Other(Helper) functions' Comment -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'initSourceView' Name.Function '(' Punctuation 'SourceView' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'PWidget' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'scrollWindow' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'PScrolledWindow' Name ',' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'buffer' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'PSourceBuffer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace '# This gets called by addTab' Comment -'\n ' Text +'\n ' Text.Whitespace '# Each tabs creates a new SourceView' Comment -'\n ' Text +'\n ' Text.Whitespace '# SourceScrolledWindow(ScrolledWindow)' Comment -'\n ' Text +'\n ' Text.Whitespace 'scrollWindow' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'scrolledWindowNew' Name '(' Punctuation 'nil' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'scrollWindow' Name '.' Punctuation 'setPolicy' Name '(' Punctuation 'POLICY_AUTOMATIC' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'POLICY_AUTOMATIC' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'scrollWindow' Name '.' Punctuation 'show' Name '(' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace '# SourceView(gtkSourceView)' Comment -'\n ' Text +'\n ' Text.Whitespace 'SourceView' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'sourceViewNew' Name '(' Punctuation 'buffer' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'PSourceView' Name '(' Punctuation 'SourceView' Name @@ -1801,7 +1810,7 @@ '(' Punctuation 'True' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'PSourceView' Name '(' Punctuation 'SourceView' Name @@ -1815,7 +1824,7 @@ '.' Punctuation 'indentWidth' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'PSourceView' Name '(' Punctuation 'SourceView' Name @@ -1829,7 +1838,7 @@ '.' Punctuation 'showLineNumbers' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'PSourceView' Name '(' Punctuation 'SourceView' Name @@ -1837,14 +1846,14 @@ '.' Punctuation 'setHighlightCurrentLine' Name '(' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'settings' Name '.' Punctuation 'highlightCurrentLine' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'PSourceView' Name '(' Punctuation 'SourceView' Name @@ -1858,7 +1867,7 @@ '.' Punctuation 'rightMargin' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'PSourceView' Name '(' Punctuation 'SourceView' Name @@ -1872,13 +1881,13 @@ '.' Punctuation 'autoIndent' Name ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'font' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'font_description_from_string' Name '(' Punctuation 'win' Name @@ -1887,53 +1896,53 @@ '.' Punctuation 'font' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'SourceView' Name '.' Punctuation 'modifyFont' Name '(' Punctuation 'font' Name ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'scrollWindow' Name '.' Punctuation 'add' Name '(' Punctuation 'SourceView' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'SourceView' Name '.' Punctuation 'show' Name '(' Punctuation ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'buffer' Name '.' Punctuation 'setHighlightMatchingBrackets' Name '(' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'settings' Name '.' Punctuation 'highlightMatchingBrackets' Name ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace '# UGLY workaround for yet another compiler bug:' Comment -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'gsignalConnect' Name '(' Punctuation 'buffer' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'mark-set' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'GCallback' Name '(' Punctuation 'aporia' Name @@ -1941,22 +1950,22 @@ 'cursorMoved' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'gsignalConnect' Name '(' Punctuation 'buffer' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'changed' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'GCallback' Name '(' Punctuation 'aporia' Name @@ -1964,12 +1973,12 @@ 'changed' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace '# -- Set the syntax highlighter scheme' Comment -'\n ' Text +'\n ' Text.Whitespace 'buffer' Name '.' Punctuation 'setScheme' Name @@ -1978,80 +1987,81 @@ '.' Punctuation 'scheme' Name ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'addTab' Name.Function '(' Punctuation 'name' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'filename' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'string' Name.Builtin ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace '## Adds a tab, if filename is not "" reads the file. And sets' Literal.String.Doc -'\n ' Text +'\n ' Text.Whitespace '## the tabs SourceViews text to that files contents.' Literal.String.Doc -'\n ' Text +'\n ' Text.Whitespace 'assert' Name '(' Punctuation 'win' Name '.' Punctuation 'nimLang' Name -' ' Text +' ' Text.Whitespace '!' Operator '=' Operator -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'buffer' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PSourceBuffer' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'sourceBufferNew' Name '(' Punctuation 'win' Name '.' Punctuation 'nimLang' Name ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'filename' Name -' ' Text +' ' Text.Whitespace '!' Operator '=' Operator -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo -' ' Text +' ' Text.Whitespace 'and' Operator.Word -' ' Text +' ' Text.Whitespace 'filename' Name -' ' Text +' ' Text.Whitespace '!' Operator '=' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String '"' Literal.String ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'lang' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'langMan' Name @@ -2060,75 +2070,75 @@ '(' Punctuation 'filename' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'lang' Name -' ' Text +' ' Text.Whitespace '!' Operator '=' Operator -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'buffer' Name '.' Punctuation 'setLanguage' Name '(' Punctuation 'lang' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'else' Keyword ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'buffer' Name '.' Punctuation 'setHighlightSyntax' Name '(' Punctuation 'False' Keyword.Pseudo ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'nam' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'name' Name -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'nam' Name -' ' Text +' ' Text.Whitespace '=' Operator '=' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String '"' Literal.String ':' Punctuation -' ' Text +' ' Text.Whitespace 'nam' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String 'Untitled' Literal.String '"' Literal.String -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'filename' Name -' ' Text +' ' Text.Whitespace '=' Operator '=' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String '"' Literal.String ':' Punctuation -' ' Text +' ' Text.Whitespace 'nam' Name '.' Punctuation 'add' Name @@ -2137,144 +2147,144 @@ ' *' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'elif' Keyword -' ' Text +' ' Text.Whitespace 'filename' Name -' ' Text +' ' Text.Whitespace '!' Operator '=' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String '"' Literal.String -' ' Text +' ' Text.Whitespace 'and' Operator.Word -' ' Text +' ' Text.Whitespace 'name' Name -' ' Text +' ' Text.Whitespace '=' Operator '=' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String '"' Literal.String ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace '# Disable the undo/redo manager.' Comment -'\n ' Text +'\n ' Text.Whitespace 'buffer' Name '.' Punctuation 'begin_not_undoable_action' Name '(' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace '# Load the file.' Comment -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'file' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'string' Name.Builtin -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'readFile' Name '(' Punctuation 'filename' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'file' Name -' ' Text +' ' Text.Whitespace '!' Operator '=' Operator -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'buffer' Name '.' Punctuation 'set_text' Name '(' Punctuation 'file' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'len' Name '(' Punctuation 'file' Name ')' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace '# Enable the undo/redo manager.' Comment -'\n ' Text +'\n ' Text.Whitespace 'buffer' Name '.' Punctuation 'end_not_undoable_action' Name '(' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace '# Get the name.ext of the filename, for the tabs title' Comment -'\n ' Text +'\n ' Text.Whitespace 'nam' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'extractFilename' Name '(' Punctuation 'filename' Name ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace '# Init the sourceview' Comment -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'sourceView' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PWidget' Name -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'scrollWindow' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PScrolledWindow' Name -'\n ' Text +'\n ' Text.Whitespace 'initSourceView' Name '(' Punctuation 'sourceView' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'scrollWindow' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'buffer' Name ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace '(' Punctuation 'TabLabel' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'labelText' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'createTabLabel' Name '(' Punctuation 'nam' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'scrollWindow' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '# Add a tab' Comment -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'SourceViewTabs' Name @@ -2283,65 +2293,65 @@ '(' Punctuation 'scrollWindow' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'TabLabel' Name ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'nTab' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Tab' Name -'\n ' Text +'\n ' Text.Whitespace 'nTab' Name '.' Punctuation 'buffer' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'buffer' Name -'\n ' Text +'\n ' Text.Whitespace 'nTab' Name '.' Punctuation 'sourceView' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'sourceView' Name -'\n ' Text +'\n ' Text.Whitespace 'nTab' Name '.' Punctuation 'label' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'labelText' Name -'\n ' Text +'\n ' Text.Whitespace 'nTab' Name '.' Punctuation 'saved' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '(' Punctuation 'filename' Name -' ' Text +' ' Text.Whitespace '!' Operator '=' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'nTab' Name '.' Punctuation 'filename' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'filename' Name -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -2350,7 +2360,7 @@ '(' Punctuation 'nTab' Name ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'PTextView' Name '(' Punctuation 'SourceView' Name @@ -2362,41 +2372,42 @@ '.' Punctuation 'buffer' Name ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace '# GTK Events Contd.' Comment -'\n' Text +'\n' Text.Whitespace '# -- TopMenu & TopBar' Comment -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'newFile' Name.Function '(' Punctuation 'menuItem' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'addTab' Name '(' Punctuation '"' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'sourceViewTabs' Name @@ -2413,40 +2424,41 @@ '-' Operator '1' Literal.Number.Integer ')' Punctuation -'\n \n' Text +'\n \n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'openFile' Name.Function '(' Punctuation 'menuItem' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'startpath' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String '"' Literal.String -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'currPage' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'SourceViewTabs' Name @@ -2454,25 +2466,25 @@ 'getCurrentPage' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'currPage' Name -' ' Text +' ' Text.Whitespace '<' Operator '%' Operator -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'tabs' Name '.' Punctuation 'len' Name ':' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'startpath' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'os' Name '.' Punctuation 'splitFile' Name @@ -2488,125 +2500,125 @@ ')' Punctuation '.' Punctuation 'dir' Name -'\n\n ' Text +'\n\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'startpath' Name '.' Punctuation 'len' Name -' ' Text +' ' Text.Whitespace '=' Operator '=' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace '# Use lastSavePath as the startpath' Comment -'\n ' Text +'\n ' Text.Whitespace 'startpath' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'tempStuff' Name '.' Punctuation 'lastSaveDir' Name -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'startpath' Name '.' Punctuation 'len' Name -' ' Text +' ' Text.Whitespace '=' Operator '=' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'startpath' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'os' Name '.' Punctuation 'getHomeDir' Name '(' Punctuation ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'files' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'ChooseFilesToOpen' Name '(' Punctuation 'win' Name '.' Punctuation 'w' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'startpath' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'files' Name '.' Punctuation 'len' Name '(' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace '>' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'for' Keyword -' ' Text +' ' Text.Whitespace 'f' Name -' ' Text +' ' Text.Whitespace 'in' Operator.Word -' ' Text +' ' Text.Whitespace 'items' Name '(' Punctuation 'files' Name ')' Punctuation ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'try' Keyword ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'addTab' Name '(' Punctuation '"' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'f' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'except' Keyword -' ' Text +' ' Text.Whitespace 'EIO' Name ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'error' Name '(' Punctuation 'win' Name '.' Punctuation 'w' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'Unable to read from file' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '# Switch to the newly created tab' Comment -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'sourceViewTabs' Name @@ -2623,31 +2635,32 @@ '-' Operator '1' Literal.Number.Integer ')' Punctuation -'\n \n' Text +'\n \n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'saveFile_Activate' Name.Function '(' Punctuation 'menuItem' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'current' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'SourceViewTabs' Name @@ -2655,12 +2668,12 @@ 'getCurrentPage' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'saveTab' Name '(' Punctuation 'current' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'os' Name '.' Punctuation 'splitFile' Name @@ -2677,31 +2690,32 @@ '.' Punctuation 'dir' Name ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'saveFileAs_Activate' Name.Function '(' Punctuation 'menuItem' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'current' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'SourceViewTabs' Name @@ -2709,18 +2723,18 @@ 'getCurrentPage' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace '(' Punctuation 'filename' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'saved' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '(' Punctuation 'win' Name '.' Punctuation @@ -2731,7 +2745,7 @@ '.' Punctuation 'filename' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -2741,7 +2755,7 @@ '.' Punctuation 'saved' Name ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -2750,11 +2764,11 @@ ']' Operator '.' Punctuation 'saved' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -2763,17 +2777,17 @@ ']' Operator '.' Punctuation 'filename' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String '"' Literal.String -'\n ' Text +'\n ' Text.Whitespace 'saveTab' Name '(' Punctuation 'current' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'os' Name '.' Punctuation 'splitFile' Name @@ -2783,13 +2797,13 @@ '.' Punctuation 'dir' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '# If the user cancels the save file dialog. Restore the previous filename' Comment -'\n ' Text +'\n ' Text.Whitespace '# and saved state' Comment -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -2798,14 +2812,14 @@ ']' Operator '.' Punctuation 'filename' Name -' ' Text +' ' Text.Whitespace '=' Operator '=' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String '"' Literal.String ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -2814,11 +2828,11 @@ ']' Operator '.' Punctuation 'filename' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'filename' Name -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -2827,35 +2841,36 @@ ']' Operator '.' Punctuation 'saved' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'saved' Name -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'undo' Name.Function '(' Punctuation 'menuItem' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' \n ' Text +' \n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'current' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'SourceViewTabs' Name @@ -2863,9 +2878,9 @@ 'getCurrentPage' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -2879,7 +2894,7 @@ '(' Punctuation ')' Punctuation ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -2892,31 +2907,32 @@ 'undo' Name '(' Punctuation ')' Punctuation -'\n \n' Text +'\n \n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'redo' Name.Function '(' Punctuation 'menuItem' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'current' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'SourceViewTabs' Name @@ -2924,9 +2940,9 @@ 'getCurrentPage' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -2940,7 +2956,7 @@ '(' Punctuation ')' Punctuation ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -2953,33 +2969,34 @@ 'redo' Name '(' Punctuation ')' Punctuation -'\n \n' Text +'\n \n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'find_Activate' Name.Function '(' Punctuation 'menuItem' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' \n ' Text +' \n ' Text.Whitespace '# Get the selected text, and set the findEntry to it.' Comment -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'currentTab' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'SourceViewTabs' Name @@ -2987,14 +3004,14 @@ 'getCurrentPage' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'insertIter' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'TTextIter' Name -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -3011,7 +3028,7 @@ 'insertIter' Name ')' Punctuation ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -3025,13 +3042,13 @@ '(' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'insertOffset' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'addr' Keyword '(' Punctuation 'insertIter' Name @@ -3040,14 +3057,14 @@ 'getOffset' Name '(' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'selectIter' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'TTextIter' Name -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -3064,7 +3081,7 @@ 'selectIter' Name ')' Punctuation ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -3078,13 +3095,13 @@ '(' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'selectOffset' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'addr' Keyword '(' Punctuation 'selectIter' Name @@ -3093,23 +3110,23 @@ 'getOffset' Name '(' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'insertOffset' Name -' ' Text +' ' Text.Whitespace '!' Operator '=' Operator -' ' Text +' ' Text.Whitespace 'selectOffset' Name ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'text' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -3126,16 +3143,16 @@ 'insertIter' Name ')' Punctuation ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'addr' Keyword '(' Punctuation 'selectIter' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'false' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'findEntry' Name @@ -3144,7 +3161,7 @@ '(' Punctuation 'text' Name ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'win' Name '.' Punctuation 'findBar' Name @@ -3152,7 +3169,7 @@ 'show' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'findEntry' Name @@ -3160,7 +3177,7 @@ 'grabFocus' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'replaceEntry' Name @@ -3168,7 +3185,7 @@ 'hide' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'replaceLabel' Name @@ -3176,7 +3193,7 @@ 'hide' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'replaceBtn' Name @@ -3184,7 +3201,7 @@ 'hide' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'replaceAllBtn' Name @@ -3192,25 +3209,26 @@ 'hide' Name '(' Punctuation ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'replace_Activate' Name.Function '(' Punctuation 'menuitem' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'findBar' Name @@ -3218,7 +3236,7 @@ 'show' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'findEntry' Name @@ -3226,7 +3244,7 @@ 'grabFocus' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'replaceEntry' Name @@ -3234,7 +3252,7 @@ 'show' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'replaceLabel' Name @@ -3242,7 +3260,7 @@ 'show' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'replaceBtn' Name @@ -3250,7 +3268,7 @@ 'show' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'replaceAllBtn' Name @@ -3258,73 +3276,75 @@ 'show' Name '(' Punctuation ')' Punctuation -'\n \n' Text +'\n \n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'settings_Activate' Name.Function '(' Punctuation 'menuitem' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'settings' Name '.' Punctuation 'showSettings' Name '(' Punctuation 'win' Name ')' Punctuation -'\n \n' Text +'\n \n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'viewBottomPanel_Toggled' Name.Function '(' Punctuation 'menuitem' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PCheckMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'settings' Name '.' Punctuation 'bottomPanelVisible' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'menuitem' Name '.' Punctuation 'itemGetActive' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'settings' Name '.' Punctuation 'bottomPanelVisible' Name ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'bottomPanelTabs' Name @@ -3332,10 +3352,10 @@ 'show' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'else' Keyword ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'bottomPanelTabs' Name @@ -3343,14 +3363,14 @@ 'hide' Name '(' Punctuation ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace 'var' Keyword.Declaration -'\n ' Text +'\n ' Text.Whitespace 'pegLineError' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'peg"' Literal.String '{[^(]*} ' Literal.String "'" Literal.String @@ -3372,11 +3392,11 @@ '\\' Literal.String 's* {.*}' Literal.String '"' Literal.String -'\n ' Text +'\n ' Text.Whitespace 'pegLineWarning' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'peg"' Literal.String '{[^(]*} ' Literal.String "'" Literal.String @@ -3406,11 +3426,11 @@ '\\' Literal.String 's* {.*}' Literal.String '"' Literal.String -'\n ' Text +'\n ' Text.Whitespace 'pegOtherError' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'peg"' Literal.String "'" Literal.String 'Error:' Literal.String @@ -3419,63 +3439,64 @@ '\\' Literal.String 's* {.*}' Literal.String '"' Literal.String -'\n ' Text +'\n ' Text.Whitespace 'pegSuccess' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'peg"' Literal.String "'" Literal.String 'Hint: operation successful' Literal.String "'" Literal.String '.*' Literal.String '"' Literal.String -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'addText' Name.Function '(' Punctuation 'textView' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PTextView' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'text' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'string' Name.Builtin ',' Punctuation -' ' Text +' ' Text.Whitespace 'colorTag' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PTextTag' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'text' Name -' ' Text +' ' Text.Whitespace '!' Operator '=' Operator -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'iter' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'TTextIter' Name -'\n ' Text +'\n ' Text.Whitespace 'textView' Name '.' Punctuation 'getBuffer' Name @@ -3489,17 +3510,17 @@ 'iter' Name ')' Punctuation ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'colorTag' Name -' ' Text +' ' Text.Whitespace '=' Operator '=' Operator -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'textView' Name '.' Punctuation 'getBuffer' Name @@ -3513,19 +3534,19 @@ 'iter' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'text' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'len' Name '(' Punctuation 'text' Name ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'else' Keyword ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'textView' Name '.' Punctuation 'getBuffer' Name @@ -3539,52 +3560,53 @@ 'iter' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'text' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'len' Name '(' Punctuation 'text' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'colorTag' Name ',' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'createColor' Name.Function '(' Punctuation 'textView' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PTextView' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'name' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'color' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'string' Name.Builtin ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'PTextTag' Name -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'tagTable' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'textView' Name '.' Punctuation 'getBuffer' Name @@ -3594,32 +3616,32 @@ 'getTagTable' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'result' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'tagTable' Name '.' Punctuation 'tableLookup' Name '(' Punctuation 'name' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'result' Name -' ' Text +' ' Text.Whitespace '=' Operator '=' Operator -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'result' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'textView' Name '.' Punctuation 'getBuffer' Name @@ -3630,23 +3652,23 @@ '(' Punctuation 'name' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'foreground' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'color' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace 'when' Keyword -' ' Text +' ' Text.Whitespace 'not' Operator.Word -' ' Text +' ' Text.Whitespace 'defined' Name '(' Punctuation 'os' Name @@ -3654,53 +3676,54 @@ 'findExe' Name ')' Punctuation ':' Punctuation -' \n ' Text -'proc ' Keyword +' \n ' Text.Whitespace +'proc' Keyword +' ' Text.Whitespace 'findExe' Name.Function '(' Punctuation 'exe' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'string' Name.Builtin ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'string' Name.Builtin -' ' Text +' ' Text.Whitespace '=' Operator -' \n ' Text +' \n ' Text.Whitespace '## returns "" if the exe cannot be found' Literal.String.Doc -'\n ' Text +'\n ' Text.Whitespace 'result' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'addFileExt' Name '(' Punctuation 'exe' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'os' Name '.' Punctuation 'exeExt' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'ExistsFile' Name '(' Punctuation 'result' Name ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'return' Keyword -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'path' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'os' Name '.' Punctuation 'getEnv' Name @@ -3709,89 +3732,90 @@ 'PATH' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'for' Keyword -' ' Text +' ' Text.Whitespace 'candidate' Name -' ' Text +' ' Text.Whitespace 'in' Operator.Word -' ' Text +' ' Text.Whitespace 'split' Name '(' Punctuation 'path' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'pathSep' Name ')' Punctuation ':' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'candidate' Name -' ' Text +' ' Text.Whitespace '/' Operator -' ' Text +' ' Text.Whitespace 'result' Name -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'ExistsFile' Name '(' Punctuation 'x' Name ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'x' Name -'\n ' Text +'\n ' Text.Whitespace 'result' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String '"' Literal.String -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'GetCmd' Name.Function '(' Punctuation 'cmd' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'filename' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'string' Name.Builtin ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'string' Name.Builtin -' ' Text +' ' Text.Whitespace '=' Operator -' \n ' Text +' \n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'f' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'quoteIfContainsWhite' Name '(' Punctuation 'filename' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'cmd' Name -' ' Text +' ' Text.Whitespace '=' Operator '~' Operator -' ' Text +' ' Text.Whitespace 'peg"' Literal.String '\\' Literal.String 's* ' Literal.String @@ -3813,13 +3837,13 @@ ' {.*}' Literal.String '"' Literal.String ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'exe' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'quoteIfContainsWhite' Name '(' Punctuation 'findExe' Name @@ -3830,83 +3854,84 @@ ']' Operator ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'exe' Name '.' Punctuation 'len' Name -' ' Text +' ' Text.Whitespace '=' Operator '=' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ':' Punctuation -' ' Text +' ' Text.Whitespace 'exe' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'matches' Name '[' Operator '0' Literal.Number.Integer ']' Operator -'\n ' Text +'\n ' Text.Whitespace 'result' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'exe' Name -' ' Text +' ' Text.Whitespace '&' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String ' ' Literal.String '"' Literal.String -' ' Text +' ' Text.Whitespace '&' Operator -' ' Text +' ' Text.Whitespace 'matches' Name '[' Operator '1' Literal.Number.Integer ']' Operator -' ' Text +' ' Text.Whitespace '%' Operator -' ' Text +' ' Text.Whitespace 'f' Name -'\n ' Text +'\n ' Text.Whitespace 'else' Keyword ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'result' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'cmd' Name -' ' Text +' ' Text.Whitespace '%' Operator -' ' Text +' ' Text.Whitespace 'f' Name -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'showBottomPanel' Name.Function '(' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'not' Operator.Word -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'settings' Name '.' Punctuation 'bottomPanelVisible' Name ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'bottomPanelTabs' Name @@ -3914,17 +3939,17 @@ 'show' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'settings' Name '.' Punctuation 'bottomPanelVisible' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'true' Keyword.Pseudo -'\n ' Text +'\n ' Text.Whitespace 'PCheckMenuItem' Name '(' Punctuation 'win' Name @@ -3936,18 +3961,18 @@ '(' Punctuation 'true' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '# Scroll to the end of the TextView' Comment -'\n ' Text +'\n ' Text.Whitespace "# This is stupid, it works sometimes... it's random" Comment -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'endIter' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'TTextIter' Name -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'outputTextView' Name @@ -3963,57 +3988,58 @@ 'endIter' Name ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'outputTextView' Name '.' Punctuation 'scrollToIter' Name '(' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'addr' Keyword '(' Punctuation 'endIter' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Float '.25' Literal.Number.Float ',' Punctuation -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Float '.0' Literal.Number.Float ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Float '.0' Literal.Number.Float ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'compileRun' Name.Function '(' Punctuation 'currentTab' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'int' Name.Builtin ',' Punctuation -' ' Text +' ' Text.Whitespace 'shouldRun' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'bool' Name.Builtin ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -4024,17 +4050,17 @@ 'filename' Name '.' Punctuation 'len' Name -' ' Text +' ' Text.Whitespace '=' Operator '=' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ':' Punctuation -' ' Text +' ' Text.Whitespace 'return' Keyword -'\n ' Text +'\n ' Text.Whitespace '# Clear the outputTextView' Comment -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'outputTextView' Name @@ -4048,16 +4074,16 @@ '"' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'outp' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'osProc' Name '.' Punctuation 'execProcess' Name @@ -4070,7 +4096,7 @@ '.' Punctuation 'nimrodCmd' Name ',' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -4081,128 +4107,128 @@ 'filename' Name ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '# Colors' Comment -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'normalTag' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'createColor' Name '(' Punctuation 'win' Name '.' Punctuation 'outputTextView' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'normalTag' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String '#3d3d3d' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'errorTag' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'createColor' Name '(' Punctuation 'win' Name '.' Punctuation 'outputTextView' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'errorTag' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'red' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'warningTag' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'createColor' Name '(' Punctuation 'win' Name '.' Punctuation 'outputTextView' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'warningTag' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'darkorange' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'successTag' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'createColor' Name '(' Punctuation 'win' Name '.' Punctuation 'outputTextView' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'successTag' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'darkgreen' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'for' Keyword -' ' Text +' ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace 'in' Operator.Word -' ' Text +' ' Text.Whitespace 'outp' Name '.' Punctuation 'splitLines' Name '(' Punctuation ')' Punctuation ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace '=' Operator '~' Operator -' ' Text +' ' Text.Whitespace 'pegLineError' Name -' ' Text +' ' Text.Whitespace '/' Operator -' ' Text +' ' Text.Whitespace 'pegOtherError' Name ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'outputTextView' Name @@ -4212,24 +4238,24 @@ '"' Literal.String '\\n' Literal.String.Escape '"' Literal.String -' ' Text +' ' Text.Whitespace '&' Operator -' ' Text +' ' Text.Whitespace 'x' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'errorTag' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'elif' Keyword -' ' Text +' ' Text.Whitespace 'x' Name '=' Operator '~' Operator -' ' Text +' ' Text.Whitespace 'pegSuccess' Name ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'outputTextView' Name @@ -4239,28 +4265,28 @@ '"' Literal.String '\\n' Literal.String.Escape '"' Literal.String -' ' Text +' ' Text.Whitespace '&' Operator -' ' Text +' ' Text.Whitespace 'x' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'successTag' Name ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace '# Launch the process' Comment -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'shouldRun' Name ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'filename' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'changeFileExt' Name '(' Punctuation 'win' Name @@ -4272,31 +4298,31 @@ '.' Punctuation 'filename' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'os' Name '.' Punctuation 'ExeExt' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'output' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String '\\n' Literal.String.Escape '"' Literal.String -' ' Text +' ' Text.Whitespace '&' Operator -' ' Text +' ' Text.Whitespace 'osProc' Name '.' Punctuation 'execProcess' Name '(' Punctuation 'filename' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'outputTextView' Name @@ -4305,17 +4331,17 @@ '(' Punctuation 'output' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'elif' Keyword -' ' Text +' ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace '=' Operator '~' Operator -' ' Text +' ' Text.Whitespace 'pegLineWarning' Name ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'outputTextView' Name @@ -4325,18 +4351,18 @@ '"' Literal.String '\\n' Literal.String.Escape '"' Literal.String -' ' Text +' ' Text.Whitespace '&' Operator -' ' Text +' ' Text.Whitespace 'x' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'warningTag' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'else' Keyword ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'outputTextView' Name @@ -4346,45 +4372,46 @@ '"' Literal.String '\\n' Literal.String.Escape '"' Literal.String -' ' Text +' ' Text.Whitespace '&' Operator -' ' Text +' ' Text.Whitespace 'x' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'normalTag' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'showBottomPanel' Name '(' Punctuation ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'CompileCurrent_Activate' Name.Function '(' Punctuation 'menuitem' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'saveFile_Activate' Name '(' Punctuation 'nil' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'compileRun' Name '(' Punctuation 'win' Name @@ -4395,36 +4422,37 @@ '(' Punctuation ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'false' Keyword.Pseudo ')' Punctuation -'\n \n' Text +'\n \n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'CompileRunCurrent_Activate' Name.Function '(' Punctuation 'menuitem' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'saveFile_Activate' Name '(' Punctuation 'nil' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'compileRun' Name '(' Punctuation 'win' Name @@ -4435,100 +4463,103 @@ '(' Punctuation ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'true' Keyword.Pseudo ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'CompileProject_Activate' Name.Function '(' Punctuation 'menuitem' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'saveAllTabs' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'compileRun' Name '(' Punctuation 'getProjectTab' Name '(' Punctuation ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'false' Keyword.Pseudo ')' Punctuation -'\n \n' Text +'\n \n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'CompileRunProject_Activate' Name.Function '(' Punctuation 'menuitem' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'saveAllTabs' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'compileRun' Name '(' Punctuation 'getProjectTab' Name '(' Punctuation ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'true' Keyword.Pseudo ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'RunCustomCommand' Name.Function '(' Punctuation 'cmd' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'string' Name.Builtin ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' \n ' Text +' \n ' Text.Whitespace 'saveFile_Activate' Name '(' Punctuation 'nil' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'currentTab' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'SourceViewTabs' Name @@ -4536,9 +4567,9 @@ 'getCurrentPage' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -4549,28 +4580,28 @@ 'filename' Name '.' Punctuation 'len' Name -' ' Text +' ' Text.Whitespace '=' Operator '=' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer -' ' Text +' ' Text.Whitespace 'or' Operator.Word -' ' Text +' ' Text.Whitespace 'cmd' Name '.' Punctuation 'len' Name -' ' Text +' ' Text.Whitespace '=' Operator '=' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ':' Punctuation -' ' Text +' ' Text.Whitespace 'return' Keyword -'\n ' Text +'\n ' Text.Whitespace '# Clear the outputTextView' Comment -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'outputTextView' Name @@ -4584,16 +4615,16 @@ '"' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'outp' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'osProc' Name '.' Punctuation 'execProcess' Name @@ -4602,7 +4633,7 @@ '(' Punctuation 'cmd' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -4613,43 +4644,43 @@ 'filename' Name ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'normalTag' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'createColor' Name '(' Punctuation 'win' Name '.' Punctuation 'outputTextView' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'normalTag' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String '#3d3d3d' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'for' Keyword -' ' Text +' ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace 'in' Operator.Word -' ' Text +' ' Text.Whitespace 'outp' Name '.' Punctuation 'splitLines' Name '(' Punctuation ')' Punctuation ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'outputTextView' Name @@ -4659,37 +4690,38 @@ '"' Literal.String '\\n' Literal.String.Escape '"' Literal.String -' ' Text +' ' Text.Whitespace '&' Operator -' ' Text +' ' Text.Whitespace 'x' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'normalTag' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'showBottomPanel' Name '(' Punctuation ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'RunCustomCommand1' Name.Function '(' Punctuation 'menuitem' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'RunCustomCommand' Name '(' Punctuation 'win' Name @@ -4698,25 +4730,26 @@ '.' Punctuation 'customCmd1' Name ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'RunCustomCommand2' Name.Function '(' Punctuation 'menuitem' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'RunCustomCommand' Name '(' Punctuation 'win' Name @@ -4725,25 +4758,26 @@ '.' Punctuation 'customCmd2' Name ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'RunCustomCommand3' Name.Function '(' Punctuation 'menuitem' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'RunCustomCommand' Name '(' Punctuation 'win' Name @@ -4752,80 +4786,83 @@ '.' Punctuation 'customCmd3' Name ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace '# -- FindBar' Comment -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'nextBtn_Clicked' Name.Function '(' Punctuation 'button' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PButton' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'findText' Name '(' Punctuation 'True' Keyword.Pseudo ')' Punctuation -'\n' Text +'\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'prevBtn_Clicked' Name.Function '(' Punctuation 'button' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PButton' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'findText' Name '(' Punctuation 'False' Keyword.Pseudo ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'replaceBtn_Clicked' Name.Function '(' Punctuation 'button' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PButton' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'currentTab' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'SourceViewTabs' Name @@ -4833,21 +4870,21 @@ 'getCurrentPage' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'start' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'theEnd' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'TTextIter' Name -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'not' Operator.Word -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -4859,31 +4896,31 @@ '.' Punctuation 'getSelectionBounds' Name '(' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'addr' Keyword '(' Punctuation 'start' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'addr' Keyword '(' Punctuation 'theEnd' Name ')' Punctuation ')' Punctuation ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace '# If no text is selected, try finding a match.' Comment -'\n ' Text +'\n ' Text.Whitespace 'findText' Name '(' Punctuation 'True' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'not' Operator.Word -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -4895,26 +4932,26 @@ '.' Punctuation 'getSelectionBounds' Name '(' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'addr' Keyword '(' Punctuation 'start' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'addr' Keyword '(' Punctuation 'theEnd' Name ')' Punctuation ')' Punctuation ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace '# No match' Comment -'\n ' Text +'\n ' Text.Whitespace 'return' Keyword -'\n \n ' Text +'\n \n ' Text.Whitespace '# Remove the text' Comment -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -4931,28 +4968,28 @@ 'start' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'addr' Keyword '(' Punctuation 'theEnd' Name ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '# Insert the replacement' Comment -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'text' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'getText' Name '(' Punctuation 'win' Name '.' Punctuation 'replaceEntry' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -4969,88 +5006,90 @@ 'start' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'text' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'len' Name '(' Punctuation 'text' Name ')' Punctuation ')' Punctuation -'\n \n' Text +'\n \n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'replaceAllBtn_Clicked' Name.Function '(' Punctuation 'button' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PButton' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'find' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'getText' Name '(' Punctuation 'win' Name '.' Punctuation 'findEntry' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'replace' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'getText' Name '(' Punctuation 'win' Name '.' Punctuation 'replaceEntry' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'replaceAll' Name '(' Punctuation 'find' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'replace' Name ')' Punctuation -'\n \n' Text +'\n \n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'closeBtn_Clicked' Name.Function '(' Punctuation 'button' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PButton' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' \n ' Text +' \n ' Text.Whitespace 'win' Name '.' Punctuation 'findBar' Name @@ -5058,499 +5097,505 @@ 'hide' Name '(' Punctuation ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'caseSens_Changed' Name.Function '(' Punctuation 'radiomenuitem' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PRadioMenuitem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'settings' Name '.' Punctuation 'search' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String 'casesens' Literal.String '"' Literal.String -'\n' Text +'\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'caseInSens_Changed' Name.Function '(' Punctuation 'radiomenuitem' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PRadioMenuitem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'settings' Name '.' Punctuation 'search' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String 'caseinsens' Literal.String '"' Literal.String -'\n' Text +'\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'style_Changed' Name.Function '(' Punctuation 'radiomenuitem' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PRadioMenuitem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'settings' Name '.' Punctuation 'search' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String 'style' Literal.String '"' Literal.String -'\n' Text +'\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'regex_Changed' Name.Function '(' Punctuation 'radiomenuitem' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PRadioMenuitem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'settings' Name '.' Punctuation 'search' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String 'regex' Literal.String '"' Literal.String -'\n' Text +'\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'peg_Changed' Name.Function '(' Punctuation 'radiomenuitem' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PRadioMenuitem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'settings' Name '.' Punctuation 'search' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String 'peg' Literal.String '"' Literal.String -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'extraBtn_Clicked' Name.Function '(' Punctuation 'button' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PButton' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'user_data' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'extraMenu' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'menuNew' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'group' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PGSList' Name -'\n\n ' Text +'\n\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'caseSensMenuItem' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'radio_menu_item_new' Name '(' Punctuation 'group' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'Case sensitive' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'extraMenu' Name '.' Punctuation 'append' Name '(' Punctuation 'caseSensMenuItem' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'signal_connect' Name '(' Punctuation 'caseSensMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'toggled' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'caseSens_Changed' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'caseSensMenuItem' Name '.' Punctuation 'show' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'group' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'caseSensMenuItem' Name '.' Punctuation 'ItemGetGroup' Name '(' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'caseInSensMenuItem' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'radio_menu_item_new' Name '(' Punctuation 'group' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'Case insensitive' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'extraMenu' Name '.' Punctuation 'append' Name '(' Punctuation 'caseInSensMenuItem' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'signal_connect' Name '(' Punctuation 'caseInSensMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'toggled' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'caseInSens_Changed' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'caseInSensMenuItem' Name '.' Punctuation 'show' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'group' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'caseInSensMenuItem' Name '.' Punctuation 'ItemGetGroup' Name '(' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'styleMenuItem' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'radio_menu_item_new' Name '(' Punctuation 'group' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'Style insensitive' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'extraMenu' Name '.' Punctuation 'append' Name '(' Punctuation 'styleMenuItem' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'signal_connect' Name '(' Punctuation 'styleMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'toggled' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'style_Changed' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'styleMenuItem' Name '.' Punctuation 'show' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'group' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'styleMenuItem' Name '.' Punctuation 'ItemGetGroup' Name '(' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'regexMenuItem' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'radio_menu_item_new' Name '(' Punctuation 'group' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'Regex' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'extraMenu' Name '.' Punctuation 'append' Name '(' Punctuation 'regexMenuItem' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'signal_connect' Name '(' Punctuation 'regexMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'toggled' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'regex_Changed' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'regexMenuItem' Name '.' Punctuation 'show' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'group' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'regexMenuItem' Name '.' Punctuation 'ItemGetGroup' Name '(' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'pegMenuItem' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'radio_menu_item_new' Name '(' Punctuation 'group' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'Pegs' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'extraMenu' Name '.' Punctuation 'append' Name '(' Punctuation 'pegMenuItem' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'signal_connect' Name '(' Punctuation 'pegMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'toggled' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'peg_Changed' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'pegMenuItem' Name '.' Punctuation 'show' Name '(' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace '# Make the correct radio button active' Comment -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'settings' Name '.' Punctuation 'search' Name -'\n ' Text +'\n ' Text.Whitespace 'of' Keyword -' ' Text -'"' Literal.String -'casesens' Literal.String -'"' Literal.String -':' Punctuation -'\n ' Text +' ' Text.Whitespace +'"' Name.Label +'casesens' Name.Label +'"' Name.Label +':' Operator +'\n ' Text.Whitespace 'PCheckMenuItem' Name '(' Punctuation 'caseSensMenuItem' Name @@ -5560,14 +5605,14 @@ '(' Punctuation 'True' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'of' Keyword -' ' Text -'"' Literal.String -'caseinsens' Literal.String -'"' Literal.String -':' Punctuation -'\n ' Text +' ' Text.Whitespace +'"' Name.Label +'caseinsens' Name.Label +'"' Name.Label +':' Operator +'\n ' Text.Whitespace 'PCheckMenuItem' Name '(' Punctuation 'caseInSensMenuItem' Name @@ -5577,14 +5622,14 @@ '(' Punctuation 'True' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'of' Keyword -' ' Text -'"' Literal.String -'style' Literal.String -'"' Literal.String -':' Punctuation -'\n ' Text +' ' Text.Whitespace +'"' Name.Label +'style' Name.Label +'"' Name.Label +':' Operator +'\n ' Text.Whitespace 'PCheckMenuItem' Name '(' Punctuation 'styleMenuItem' Name @@ -5594,14 +5639,14 @@ '(' Punctuation 'True' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'of' Keyword -' ' Text -'"' Literal.String -'regex' Literal.String -'"' Literal.String -':' Punctuation -'\n ' Text +' ' Text.Whitespace +'"' Name.Label +'regex' Name.Label +'"' Name.Label +':' Operator +'\n ' Text.Whitespace 'PCheckMenuItem' Name '(' Punctuation 'regexMenuItem' Name @@ -5611,14 +5656,14 @@ '(' Punctuation 'True' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'of' Keyword -' ' Text -'"' Literal.String -'peg' Literal.String -'"' Literal.String -':' Punctuation -'\n ' Text +' ' Text.Whitespace +'"' Name.Label +'peg' Name.Label +'"' Name.Label +':' Operator +'\n ' Text.Whitespace 'PCheckMenuItem' Name '(' Punctuation 'pegMenuItem' Name @@ -5628,94 +5673,95 @@ '(' Punctuation 'True' Keyword.Pseudo ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'extraMenu' Name '.' Punctuation 'popup' Name '(' Punctuation 'nil' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ',' Punctuation -' ' Text +' ' Text.Whitespace 'get_current_event_time' Name '(' Punctuation ')' Punctuation ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace '# GUI Initialization' Comment -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'createAccelMenuItem' Name.Function '(' Punctuation 'toolsMenu' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PMenu' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'accGroup' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PAccelGroup' Name ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'label' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'string' Name.Builtin ',' Punctuation -' ' Text +' ' Text.Whitespace 'acc' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'gint' Name ',' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'action' Name ':' Punctuation -' ' Text -'proc' Keyword -' ' Text +' ' Text.Whitespace +'proc' Name +' ' Text.Whitespace '(' Punctuation 'i' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'p' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'pgpointer' Name ')' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' \n ' Text +' \n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'result' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'menu_item_new' Name '(' Punctuation 'label' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'result' Name '.' Punctuation 'addAccelerator' Name @@ -5724,217 +5770,219 @@ 'activate' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'accGroup' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'acc' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ',' Punctuation -' ' Text +' ' Text.Whitespace 'ACCEL_VISIBLE' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'ToolsMenu' Name '.' Punctuation 'append' Name '(' Punctuation 'result' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'show' Name '(' Punctuation 'result' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'signal_connect' Name '(' Punctuation 'result' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'activate' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'action' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'createSeparator' Name.Function '(' Punctuation 'menu' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PMenu' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'sep' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'separator_menu_item_new' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'menu' Name '.' Punctuation 'append' Name '(' Punctuation 'sep' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'sep' Name '.' Punctuation 'show' Name '(' Punctuation ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'initTopMenu' Name.Function '(' Punctuation 'MainBox' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PBox' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace '# Create a accelerator group, used for shortcuts' Comment -'\n ' Text +'\n ' Text.Whitespace '# like CTRL + S in SaveMenuItem' Comment -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'accGroup' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'accel_group_new' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'add_accel_group' Name '(' Punctuation 'win' Name '.' Punctuation 'w' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'accGroup' Name ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace '# TopMenu(MenuBar)' Comment -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'TopMenu' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'menuBarNew' Name '(' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace '# FileMenu' Comment -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'FileMenu' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'menuNew' Name '(' Punctuation ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'NewMenuItem' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'menu_item_new' Name '(' Punctuation '"' Literal.String 'New' Literal.String '"' Literal.String ')' Punctuation -' ' Text +' ' Text.Whitespace '# New' Comment -'\n ' Text +'\n ' Text.Whitespace 'FileMenu' Name '.' Punctuation 'append' Name '(' Punctuation 'NewMenuItem' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'show' Name '(' Punctuation 'NewMenuItem' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'signal_connect' Name '(' Punctuation 'NewMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'activate' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'newFile' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'createSeparator' Name '(' Punctuation 'FileMenu' Name ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'OpenMenuItem' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'menu_item_new' Name '(' Punctuation '"' Literal.String 'Open...' Literal.String '"' Literal.String ')' Punctuation -' ' Text +' ' Text.Whitespace '# Open...' Comment -'\n ' Text +'\n ' Text.Whitespace '# CTRL + O' Comment -'\n ' Text +'\n ' Text.Whitespace 'OpenMenuItem' Name '.' Punctuation 'add_accelerator' Name @@ -5943,43 +5991,43 @@ 'activate' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'accGroup' Name ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'KEY_o' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'CONTROL_MASK' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'ACCEL_VISIBLE' Name ')' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'FileMenu' Name '.' Punctuation 'append' Name '(' Punctuation 'OpenMenuItem' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'show' Name '(' Punctuation 'OpenMenuItem' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'signal_connect' Name '(' Punctuation 'OpenMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'activate' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'aporia' Name @@ -5987,27 +6035,27 @@ 'openFile' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'SaveMenuItem' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'menu_item_new' Name '(' Punctuation '"' Literal.String 'Save' Literal.String '"' Literal.String ')' Punctuation -' ' Text +' ' Text.Whitespace '# Save' Comment -'\n ' Text +'\n ' Text.Whitespace '# CTRL + S' Comment -'\n ' Text +'\n ' Text.Whitespace 'SaveMenuItem' Name '.' Punctuation 'add_accelerator' Name @@ -6016,67 +6064,67 @@ 'activate' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'accGroup' Name ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'KEY_s' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'CONTROL_MASK' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'ACCEL_VISIBLE' Name ')' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'FileMenu' Name '.' Punctuation 'append' Name '(' Punctuation 'SaveMenuItem' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'show' Name '(' Punctuation 'SaveMenuItem' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'signal_connect' Name '(' Punctuation 'SaveMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'activate' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'saveFile_activate' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'SaveAsMenuItem' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'menu_item_new' Name '(' Punctuation '"' Literal.String 'Save As...' Literal.String '"' Literal.String ')' Punctuation -' ' Text +' ' Text.Whitespace '# Save as...' Comment -'\n\n ' Text +'\n\n ' Text.Whitespace 'SaveAsMenuItem' Name '.' Punctuation 'add_accelerator' Name @@ -6085,142 +6133,142 @@ 'activate' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'accGroup' Name ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'KEY_s' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'CONTROL_MASK' Name -' ' Text +' ' Text.Whitespace 'or' Operator.Word -' ' Text +' ' Text.Whitespace 'gdk2' Name '.' Punctuation 'SHIFT_MASK' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'ACCEL_VISIBLE' Name ')' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'FileMenu' Name '.' Punctuation 'append' Name '(' Punctuation 'SaveAsMenuItem' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'show' Name '(' Punctuation 'SaveAsMenuItem' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'signal_connect' Name '(' Punctuation 'SaveAsMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'activate' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'saveFileAs_Activate' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'FileMenuItem' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'menuItemNewWithMnemonic' Name '(' Punctuation '"' Literal.String '_File' Literal.String '"' Literal.String ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'FileMenuItem' Name '.' Punctuation 'setSubMenu' Name '(' Punctuation 'FileMenu' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'FileMenuItem' Name '.' Punctuation 'show' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'TopMenu' Name '.' Punctuation 'append' Name '(' Punctuation 'FileMenuItem' Name ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace '# Edit menu' Comment -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'EditMenu' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'menuNew' Name '(' Punctuation ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'UndoMenuItem' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'menu_item_new' Name '(' Punctuation '"' Literal.String 'Undo' Literal.String '"' Literal.String ')' Punctuation -' ' Text +' ' Text.Whitespace '# Undo' Comment -'\n ' Text +'\n ' Text.Whitespace 'EditMenu' Name '.' Punctuation 'append' Name '(' Punctuation 'UndoMenuItem' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'show' Name '(' Punctuation 'UndoMenuItem' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'signal_connect' Name '(' Punctuation 'UndoMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'activate' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'aporia' Name @@ -6228,49 +6276,49 @@ 'undo' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'RedoMenuItem' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'menu_item_new' Name '(' Punctuation '"' Literal.String 'Redo' Literal.String '"' Literal.String ')' Punctuation -' ' Text +' ' Text.Whitespace '# Undo' Comment -'\n ' Text +'\n ' Text.Whitespace 'EditMenu' Name '.' Punctuation 'append' Name '(' Punctuation 'RedoMenuItem' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'show' Name '(' Punctuation 'RedoMenuItem' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'signal_connect' Name '(' Punctuation 'RedoMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'activate' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'aporia' Name @@ -6278,30 +6326,30 @@ 'redo' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'createSeparator' Name '(' Punctuation 'EditMenu' Name ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'FindMenuItem' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'menu_item_new' Name '(' Punctuation '"' Literal.String 'Find' Literal.String '"' Literal.String ')' Punctuation -' ' Text +' ' Text.Whitespace '# Find' Comment -'\n ' Text +'\n ' Text.Whitespace 'FindMenuItem' Name '.' Punctuation 'add_accelerator' Name @@ -6310,43 +6358,43 @@ 'activate' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'accGroup' Name ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'KEY_f' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'CONTROL_MASK' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'ACCEL_VISIBLE' Name ')' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'EditMenu' Name '.' Punctuation 'append' Name '(' Punctuation 'FindMenuItem' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'show' Name '(' Punctuation 'FindMenuItem' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'signal_connect' Name '(' Punctuation 'FindMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'activate' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'aporia' Name @@ -6354,25 +6402,25 @@ 'find_Activate' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'ReplaceMenuItem' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'menu_item_new' Name '(' Punctuation '"' Literal.String 'Replace' Literal.String '"' Literal.String ')' Punctuation -' ' Text +' ' Text.Whitespace '# Replace' Comment -'\n ' Text +'\n ' Text.Whitespace 'ReplaceMenuItem' Name '.' Punctuation 'add_accelerator' Name @@ -6381,43 +6429,43 @@ 'activate' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'accGroup' Name ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'KEY_h' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'CONTROL_MASK' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'ACCEL_VISIBLE' Name ')' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'EditMenu' Name '.' Punctuation 'append' Name '(' Punctuation 'ReplaceMenuItem' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'show' Name '(' Punctuation 'ReplaceMenuItem' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'signal_connect' Name '(' Punctuation 'ReplaceMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'activate' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'aporia' Name @@ -6425,54 +6473,54 @@ 'replace_Activate' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'createSeparator' Name '(' Punctuation 'EditMenu' Name ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'SettingsMenuItem' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'menu_item_new' Name '(' Punctuation '"' Literal.String 'Settings...' Literal.String '"' Literal.String ')' Punctuation -' ' Text +' ' Text.Whitespace '# Settings' Comment -'\n ' Text +'\n ' Text.Whitespace 'EditMenu' Name '.' Punctuation 'append' Name '(' Punctuation 'SettingsMenuItem' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'show' Name '(' Punctuation 'SettingsMenuItem' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'signal_connect' Name '(' Punctuation 'SettingsMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'activate' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'aporia' Name @@ -6480,68 +6528,68 @@ 'Settings_Activate' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'EditMenuItem' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'menuItemNewWithMnemonic' Name '(' Punctuation '"' Literal.String '_Edit' Literal.String '"' Literal.String ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'EditMenuItem' Name '.' Punctuation 'setSubMenu' Name '(' Punctuation 'EditMenu' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'EditMenuItem' Name '.' Punctuation 'show' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'TopMenu' Name '.' Punctuation 'append' Name '(' Punctuation 'EditMenuItem' Name ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace '# View menu' Comment -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'ViewMenu' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'menuNew' Name '(' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'win' Name '.' Punctuation 'viewBottomPanelMenuItem' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'check_menu_item_new' Name '(' Punctuation '"' Literal.String 'Bottom Panel' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'PCheckMenuItem' Name '(' Punctuation 'win' Name @@ -6551,14 +6599,14 @@ '.' Punctuation 'itemSetActive' Name '(' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'settings' Name '.' Punctuation 'bottomPanelVisible' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'viewBottomPanelMenuItem' Name @@ -6569,19 +6617,19 @@ 'activate' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'accGroup' Name ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'KEY_f9' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'CONTROL_MASK' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'ACCEL_VISIBLE' Name ')' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'ViewMenu' Name '.' Punctuation 'append' Name @@ -6590,28 +6638,28 @@ '.' Punctuation 'viewBottomPanelMenuItem' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'show' Name '(' Punctuation 'win' Name '.' Punctuation 'viewBottomPanelMenuItem' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'signal_connect' Name '(' Punctuation 'win' Name '.' Punctuation 'viewBottomPanelMenuItem' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'toggled' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'aporia' Name @@ -6619,323 +6667,324 @@ 'viewBottomPanel_Toggled' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'ViewMenuItem' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'menuItemNewWithMnemonic' Name '(' Punctuation '"' Literal.String '_View' Literal.String '"' Literal.String ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'ViewMenuItem' Name '.' Punctuation 'setSubMenu' Name '(' Punctuation 'ViewMenu' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'ViewMenuItem' Name '.' Punctuation 'show' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'TopMenu' Name '.' Punctuation 'append' Name '(' Punctuation 'ViewMenuItem' Name ')' Punctuation -' \n \n \n ' Text +' \n \n \n ' Text.Whitespace '# Tools menu' Comment -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'ToolsMenu' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'menuNew' Name '(' Punctuation ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'createAccelMenuItem' Name '(' Punctuation 'ToolsMenu' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'accGroup' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'Compile current file' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'KEY_F4' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'aporia' Name '.' Punctuation 'CompileCurrent_Activate' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'createAccelMenuItem' Name '(' Punctuation 'ToolsMenu' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'accGroup' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'Compile & run current file' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'KEY_F5' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'aporia' Name '.' Punctuation 'CompileRunCurrent_Activate' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'createSeparator' Name '(' Punctuation 'ToolsMenu' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'createAccelMenuItem' Name '(' Punctuation 'ToolsMenu' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'accGroup' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'Compile project' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'KEY_F8' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'aporia' Name '.' Punctuation 'CompileProject_Activate' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'createAccelMenuItem' Name '(' Punctuation 'ToolsMenu' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'accGroup' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'Compile & run project' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'KEY_F9' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'aporia' Name '.' Punctuation 'CompileRunProject_Activate' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'createSeparator' Name '(' Punctuation 'ToolsMenu' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'createAccelMenuItem' Name '(' Punctuation 'ToolsMenu' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'accGroup' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'Run custom command 1' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'KEY_F1' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'aporia' Name '.' Punctuation 'RunCustomCommand1' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'createAccelMenuItem' Name '(' Punctuation 'ToolsMenu' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'accGroup' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'Run custom command 2' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'KEY_F2' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'aporia' Name '.' Punctuation 'RunCustomCommand2' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'createAccelMenuItem' Name '(' Punctuation 'ToolsMenu' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'accGroup' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'Run custom command 3' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'KEY_F3' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'aporia' Name '.' Punctuation 'RunCustomCommand3' Name ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'ToolsMenuItem' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'menuItemNewWithMnemonic' Name '(' Punctuation '"' Literal.String '_Tools' Literal.String '"' Literal.String ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'ToolsMenuItem' Name '.' Punctuation 'setSubMenu' Name '(' Punctuation 'ToolsMenu' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'ToolsMenuItem' Name '.' Punctuation 'show' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'TopMenu' Name '.' Punctuation 'append' Name '(' Punctuation 'ToolsMenuItem' Name ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace '# Help menu' Comment -'\n ' Text +'\n ' Text.Whitespace 'MainBox' Name '.' Punctuation 'packStart' Name '(' Punctuation 'TopMenu' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'TopMenu' Name '.' Punctuation 'show' Name '(' Punctuation ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'initToolBar' Name.Function '(' Punctuation 'MainBox' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PBox' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace '# TopBar(ToolBar)' Comment -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'TopBar' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'toolbarNew' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'TopBar' Name '.' Punctuation 'setStyle' Name '(' Punctuation 'TOOLBAR_ICONS' Name ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'NewFileItem' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'TopBar' Name '.' Punctuation 'insertStock' Name '(' Punctuation 'STOCK_NEW' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'New File' Literal.String '"' Literal.String ',' Punctuation -'\n ' Text +'\n ' Text.Whitespace '"' Literal.String 'New File' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'aporia' Name @@ -6943,42 +6992,42 @@ 'newFile' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'TopBar' Name '.' Punctuation 'appendSpace' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'OpenItem' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'TopBar' Name '.' Punctuation 'insertStock' Name '(' Punctuation 'STOCK_OPEN' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'Open' Literal.String '"' Literal.String ',' Punctuation -'\n ' Text +'\n ' Text.Whitespace '"' Literal.String 'Open' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'aporia' Name @@ -6986,79 +7035,79 @@ 'openFile' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '-' Operator '1' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'SaveItem' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'TopBar' Name '.' Punctuation 'insertStock' Name '(' Punctuation 'STOCK_SAVE' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'Save' Literal.String '"' Literal.String ',' Punctuation -'\n ' Text +'\n ' Text.Whitespace '"' Literal.String 'Save' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'saveFile_Activate' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '-' Operator '1' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'TopBar' Name '.' Punctuation 'appendSpace' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'UndoItem' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'TopBar' Name '.' Punctuation 'insertStock' Name '(' Punctuation 'STOCK_UNDO' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'Undo' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace '"' Literal.String 'Undo' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'aporia' Name @@ -7066,37 +7115,37 @@ 'undo' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '-' Operator '1' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'RedoItem' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'TopBar' Name '.' Punctuation 'insertStock' Name '(' Punctuation 'STOCK_REDO' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'Redo' Literal.String '"' Literal.String ',' Punctuation -'\n ' Text +'\n ' Text.Whitespace '"' Literal.String 'Redo' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'aporia' Name @@ -7104,91 +7153,92 @@ 'redo' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '-' Operator '1' Literal.Number.Integer ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'MainBox' Name '.' Punctuation 'packStart' Name '(' Punctuation 'TopBar' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'TopBar' Name '.' Punctuation 'show' Name '(' Punctuation ')' Punctuation -'\n \n' Text +'\n \n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'initSourceViewTabs' Name.Function '(' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'SourceViewTabs' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'notebookNew' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '#win.sourceViewTabs.dragDestSet(DEST_DEFAULT_DROP, nil, 0, ACTION_MOVE)' Comment -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'SourceViewTabs' Name '.' Punctuation 'signalConnect' Name '(' Punctuation -'\n ' Text +'\n ' Text.Whitespace '"' Literal.String 'switch-page' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'onSwitchTab' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '#discard win.SourceViewTabs.signalConnect(' Comment -'\n ' Text +'\n ' Text.Whitespace '# "drag-drop", SIGNAL_FUNC(svTabs_DragDrop), nil)' Comment -'\n ' Text +'\n ' Text.Whitespace '#discard win.SourceViewTabs.signalConnect(' Comment -'\n ' Text +'\n ' Text.Whitespace '# "drag-data-received", SIGNAL_FUNC(svTabs_DragDataRecv), nil)' Comment -'\n ' Text +'\n ' Text.Whitespace '#discard win.SourceViewTabs.signalConnect(' Comment -'\n ' Text +'\n ' Text.Whitespace '# "drag-motion", SIGNAL_FUNC(svTabs_DragMotion), nil)' Comment -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'SourceViewTabs' Name @@ -7197,7 +7247,7 @@ '(' Punctuation 'True' Keyword.Pseudo ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'win' Name '.' Punctuation 'SourceViewTabs' Name @@ -7205,29 +7255,29 @@ 'show' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'lastSession' Name '.' Punctuation 'len' Name -' ' Text +' ' Text.Whitespace '!' Operator '=' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'for' Keyword -' ' Text +' ' Text.Whitespace 'i' Name -' ' Text +' ' Text.Whitespace 'in' Operator.Word -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer -' ' Text +' ' Text.Whitespace '..' Punctuation -' ' Text +' ' Text.Whitespace 'len' Name '(' Punctuation 'lastSession' Name @@ -7235,13 +7285,13 @@ '-' Operator '1' Literal.Number.Integer ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'splitUp' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'lastSession' Name '[' Operator 'i' Name @@ -7253,47 +7303,47 @@ '|' Literal.String.Char "'" Literal.String.Char ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace '(' Punctuation 'filename' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'offset' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '(' Punctuation 'splitUp' Name '[' Operator '0' Literal.Number.Integer ']' Operator ',' Punctuation -' ' Text +' ' Text.Whitespace 'splitUp' Name '[' Operator '1' Literal.Number.Integer ']' Operator ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'addTab' Name '(' Punctuation '"' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'filename' Name ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'iter' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'TTextIter' Name -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -7310,14 +7360,14 @@ 'iter' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'offset' Name '.' Punctuation 'parseInt' Name '(' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -7333,13 +7383,13 @@ 'insert' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'addr' Keyword '(' Punctuation 'iter' Name ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -7355,17 +7405,17 @@ 'selection_bound' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'addr' Keyword '(' Punctuation 'iter' Name ')' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace '# TODO: Fix this..... :(' Comment -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'PTextView' Name '(' Punctuation 'win' Name @@ -7378,7 +7428,7 @@ 'sourceView' Name ')' Punctuation '.' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'scrollToIter' Name '(' Punctuation 'addr' Keyword @@ -7386,37 +7436,37 @@ 'iter' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Float '.25' Literal.Number.Float ',' Punctuation -' ' Text +' ' Text.Whitespace 'true' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Float '.0' Literal.Number.Float ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Float '.0' Literal.Number.Float ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'else' Keyword ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'addTab' Name '(' Punctuation '"' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String '"' Literal.String ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace "# This doesn't work :\\" Comment -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'Tabs' Name @@ -7429,34 +7479,35 @@ 'grabFocus' Name '(' Punctuation ')' Punctuation -'\n\n \n' Text +'\n\n \n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'initBottomTabs' Name.Function '(' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'bottomPanelTabs' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'notebookNew' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'settings' Name '.' Punctuation 'bottomPanelVisible' Name ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'bottomPanelTabs' Name @@ -7464,38 +7515,38 @@ 'show' Name '(' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace '# output tab' Comment -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'tabLabel' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'labelNew' Name '(' Punctuation '"' Literal.String 'Output' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'outputTab' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'vboxNew' Name '(' Punctuation 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'bottomPanelTabs' Name @@ -7504,68 +7555,68 @@ '(' Punctuation 'outputTab' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'tabLabel' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '# Compiler tabs, gtktextview' Comment -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'outputScrolledWindow' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'scrolledwindowNew' Name '(' Punctuation 'nil' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'outputScrolledWindow' Name '.' Punctuation 'setPolicy' Name '(' Punctuation 'POLICY_AUTOMATIC' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'POLICY_AUTOMATIC' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'outputTab' Name '.' Punctuation 'packStart' Name '(' Punctuation 'outputScrolledWindow' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'true' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'true' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'outputScrolledWindow' Name '.' Punctuation 'show' Name '(' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'win' Name '.' Punctuation 'outputTextView' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'textviewNew' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'outputScrolledWindow' Name '.' Punctuation 'add' Name @@ -7574,7 +7625,7 @@ '.' Punctuation 'outputTextView' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'outputTextView' Name @@ -7582,47 +7633,48 @@ 'show' Name '(' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'outputTab' Name '.' Punctuation 'show' Name '(' Punctuation ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'initTAndBP' Name.Function '(' Punctuation 'MainBox' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PBox' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace "# This init's the HPaned, which splits the sourceViewTabs" Comment -'\n ' Text +'\n ' Text.Whitespace '# and the BottomPanelTabs' Comment -'\n ' Text +'\n ' Text.Whitespace 'initSourceViewTabs' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'initBottomTabs' Name '(' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'TAndBPVPaned' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'vpanedNew' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'tandbpVPaned' Name '.' Punctuation 'pack1' Name @@ -7631,17 +7683,17 @@ '.' Punctuation 'sourceViewTabs' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'resize' Name '=' Operator 'True' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'shrink' Name '=' Operator 'False' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'tandbpVPaned' Name '.' Punctuation 'pack2' Name @@ -7650,33 +7702,33 @@ '.' Punctuation 'bottomPanelTabs' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'resize' Name '=' Operator 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'shrink' Name '=' Operator 'False' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'MainBox' Name '.' Punctuation 'packStart' Name '(' Punctuation 'TAndBPVPaned' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'True' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'True' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'tandbpVPaned' Name '.' Punctuation 'setPosition' Name @@ -7687,41 +7739,42 @@ '.' Punctuation 'VPanedPos' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'TAndBPVPaned' Name '.' Punctuation 'show' Name '(' Punctuation ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'initFindBar' Name.Function '(' Punctuation 'MainBox' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PBox' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace '# Create a fixed container' Comment -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'findBar' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'HBoxNew' Name '(' Punctuation 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'findBar' Name @@ -7730,22 +7783,22 @@ '(' Punctuation '4' Literal.Number.Integer ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace "# Add a Label 'Find'" Comment -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'findLabel' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'labelNew' Name '(' Punctuation '"' Literal.String 'Find:' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'findBar' Name @@ -7754,34 +7807,34 @@ '(' Punctuation 'findLabel' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'findLabel' Name '.' Punctuation 'show' Name '(' Punctuation ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace '# Add a (find) text entry' Comment -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'findEntry' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'entryNew' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'findBar' Name @@ -7792,18 +7845,18 @@ '.' Punctuation 'findEntry' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'findEntry' Name @@ -7814,19 +7867,19 @@ 'activate' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'aporia' Name '.' Punctuation 'nextBtn_Clicked' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'findEntry' Name @@ -7834,14 +7887,14 @@ 'show' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'rq' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'TRequisition' Name -' \n ' Text +' \n ' Text.Whitespace 'win' Name '.' Punctuation 'findEntry' Name @@ -7853,9 +7906,9 @@ 'rq' Name ')' Punctuation ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace '# Make the (find) text entry longer' Comment -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'findEntry' Name @@ -7864,29 +7917,29 @@ '(' Punctuation '190' Literal.Number.Integer ',' Punctuation -' ' Text +' ' Text.Whitespace 'rq' Name '.' Punctuation 'height' Name ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace "# Add a Label 'Replace' " Comment -'\n ' Text +'\n ' Text.Whitespace "# - This Is only shown, when the 'Search & Replace'(CTRL + H) is shown" Comment -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'replaceLabel' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'labelNew' Name '(' Punctuation '"' Literal.String 'Replace:' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'findBar' Name @@ -7897,32 +7950,32 @@ '.' Punctuation 'replaceLabel' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '#replaceLabel.show()' Comment -'\n \n ' Text +'\n \n ' Text.Whitespace '# Add a (replace) text entry ' Comment -'\n ' Text +'\n ' Text.Whitespace "# - This Is only shown, when the 'Search & Replace'(CTRL + H) is shown" Comment -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'replaceEntry' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'entryNew' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'findBar' Name @@ -7933,25 +7986,25 @@ '.' Punctuation 'replaceEntry' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '#win.replaceEntry.show()' Comment -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'rq1' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'TRequisition' Name -' \n ' Text +' \n ' Text.Whitespace 'win' Name '.' Punctuation 'replaceEntry' Name @@ -7963,9 +8016,9 @@ 'rq1' Name ')' Punctuation ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace '# Make the (replace) text entry longer' Comment -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'replaceEntry' Name @@ -7974,27 +8027,27 @@ '(' Punctuation '100' Literal.Number.Integer ',' Punctuation -' ' Text +' ' Text.Whitespace 'rq1' Name '.' Punctuation 'height' Name ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace '# Find next button' Comment -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'nextBtn' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'buttonNew' Name '(' Punctuation '"' Literal.String 'Next' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'findBar' Name @@ -8003,18 +8056,18 @@ '(' Punctuation 'nextBtn' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'false' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'false' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'nextBtn' Name '.' Punctuation 'signalConnect' Name @@ -8023,7 +8076,7 @@ 'clicked' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'aporia' Name @@ -8031,23 +8084,23 @@ 'nextBtn_Clicked' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'nextBtn' Name '.' Punctuation 'show' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'nxtBtnRq' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'TRequisition' Name -'\n ' Text +'\n ' Text.Whitespace 'nextBtn' Name '.' Punctuation 'sizeRequest' Name @@ -8057,22 +8110,22 @@ 'nxtBtnRq' Name ')' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace '# Find previous button' Comment -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'prevBtn' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'buttonNew' Name '(' Punctuation '"' Literal.String 'Previous' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'findBar' Name @@ -8081,18 +8134,18 @@ '(' Punctuation 'prevBtn' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'false' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'false' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'prevBtn' Name '.' Punctuation 'signalConnect' Name @@ -8101,7 +8154,7 @@ 'clicked' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'aporia' Name @@ -8109,33 +8162,33 @@ 'prevBtn_Clicked' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'prevBtn' Name '.' Punctuation 'show' Name '(' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace '# Replace button' Comment -'\n ' Text +'\n ' Text.Whitespace "# - This Is only shown, when the 'Search & Replace'(CTRL + H) is shown" Comment -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'replaceBtn' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'buttonNew' Name '(' Punctuation '"' Literal.String 'Replace' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'findBar' Name @@ -8146,18 +8199,18 @@ '.' Punctuation 'replaceBtn' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'false' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'false' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'replaceBtn' Name @@ -8168,7 +8221,7 @@ 'clicked' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'aporia' Name @@ -8176,29 +8229,29 @@ 'replaceBtn_Clicked' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '#replaceBtn.show()' Comment -'\n\n ' Text +'\n\n ' Text.Whitespace '# Replace all button' Comment -'\n ' Text +'\n ' Text.Whitespace "# - this Is only shown, when the 'Search & Replace'(CTRL + H) is shown" Comment -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'replaceAllBtn' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'buttonNew' Name '(' Punctuation '"' Literal.String 'Replace All' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'findBar' Name @@ -8209,18 +8262,18 @@ '.' Punctuation 'replaceAllBtn' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'false' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'false' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'replaceAllBtn' Name @@ -8231,7 +8284,7 @@ 'clicked' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'aporia' Name @@ -8239,82 +8292,82 @@ 'replaceAllBtn_Clicked' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '#replaceAllBtn.show()' Comment -'\n \n ' Text +'\n \n ' Text.Whitespace '# Right side ...' Comment -'\n \n ' Text +'\n \n ' Text.Whitespace '# Close button - With a close stock image' Comment -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'closeBtn' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'buttonNew' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'closeImage' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'imageNewFromStock' Name '(' Punctuation 'STOCK_CLOSE' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'ICON_SIZE_SMALL_TOOLBAR' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'closeBox' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'hboxNew' Name '(' Punctuation 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'closeBtn' Name '.' Punctuation 'add' Name '(' Punctuation 'closeBox' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'closeBox' Name '.' Punctuation 'show' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'closeBox' Name '.' Punctuation 'add' Name '(' Punctuation 'closeImage' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'closeImage' Name '.' Punctuation 'show' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'closeBtn' Name '.' Punctuation 'signalConnect' Name @@ -8323,7 +8376,7 @@ 'clicked' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'aporia' Name @@ -8331,10 +8384,10 @@ 'closeBtn_Clicked' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'findBar' Name @@ -8343,90 +8396,90 @@ '(' Punctuation 'closeBtn' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '2' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'closeBtn' Name '.' Punctuation 'show' Name '(' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace "# Extra button - When clicked shows a menu with options like 'Use regex'" Comment -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'extraBtn' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'buttonNew' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'extraImage' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'imageNewFromStock' Name '(' Punctuation 'STOCK_PROPERTIES' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'ICON_SIZE_SMALL_TOOLBAR' Name ')' Punctuation -'\n\n ' Text +'\n\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'extraBox' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'hboxNew' Name '(' Punctuation 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'extraBtn' Name '.' Punctuation 'add' Name '(' Punctuation 'extraBox' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'extraBox' Name '.' Punctuation 'show' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'extraBox' Name '.' Punctuation 'add' Name '(' Punctuation 'extraImage' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'extraImage' Name '.' Punctuation 'show' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'extraBtn' Name '.' Punctuation 'signalConnect' Name @@ -8435,7 +8488,7 @@ 'clicked' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'aporia' Name @@ -8443,10 +8496,10 @@ 'extraBtn_Clicked' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'findBar' Name @@ -8455,22 +8508,22 @@ '(' Punctuation 'extraBtn' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'extraBtn' Name '.' Punctuation 'show' Name '(' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'MainBox' Name '.' Punctuation 'packStart' Name @@ -8479,16 +8532,16 @@ '.' Punctuation 'findBar' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'findBar' Name @@ -8496,29 +8549,30 @@ 'show' Name '(' Punctuation ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'initStatusBar' Name.Function '(' Punctuation 'MainBox' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'PBox' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'bottomBar' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'statusbarNew' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'MainBox' Name '.' Punctuation 'packStart' Name @@ -8527,16 +8581,16 @@ '.' Punctuation 'bottomBar' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'bottomBar' Name @@ -8544,9 +8598,9 @@ 'show' Name '(' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'bottomBar' Name @@ -8555,49 +8609,50 @@ '(' Punctuation '0' Literal.Number.Integer ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'Line: 0 Column: 0' Literal.String '"' Literal.String ')' Punctuation -'\n \n' Text +'\n \n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'initControls' Name.Function '(' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace '# Load up the language style' Comment -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'langMan' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'languageManagerGetDefault' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'langpaths' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'array' Name.Builtin '[' Operator '0' Literal.Number.Float '..' Punctuation '1' Literal.Number.Integer ',' Punctuation -' ' Text +' ' Text.Whitespace 'cstring' Name ']' Operator -' ' Text +' ' Text.Whitespace '=' Operator -' \n ' Text +' \n ' Text.Whitespace '[' Operator 'cstring' Name '(' Punctuation @@ -8606,16 +8661,16 @@ 'getApplicationDir' Name '(' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace '/' Operator -' ' Text +' ' Text.Whitespace 'langSpecs' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ']' Operator -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'langMan' Name @@ -8627,13 +8682,13 @@ 'langpaths' Name ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'nimLang' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'langMan' Name @@ -8644,44 +8699,44 @@ 'nimrod' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'nimLang' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'nimLang' Name -'\n \n ' Text +'\n \n ' Text.Whitespace '# Load the scheme' Comment -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'schemeMan' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'schemeManagerGetDefault' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'schemepaths' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'array' Name.Builtin '[' Operator '0' Literal.Number.Float '..' Punctuation '1' Literal.Number.Integer ',' Punctuation -' ' Text +' ' Text.Whitespace 'cstring' Name ']' Operator -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace '[' Operator 'cstring' Name '(' Punctuation @@ -8690,16 +8745,16 @@ 'getApplicationDir' Name '(' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace '/' Operator -' ' Text +' ' Text.Whitespace 'styles' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ']' Operator -'\n ' Text +'\n ' Text.Whitespace 'schemeMan' Name '.' Punctuation 'setSearchPath' Name @@ -8709,13 +8764,13 @@ 'schemepaths' Name ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'scheme' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'schemeMan' Name '.' Punctuation 'getScheme' Name @@ -8726,22 +8781,22 @@ '.' Punctuation 'colorSchemeID' Name ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace '# Window' Comment -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'w' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'windowNew' Name '(' Punctuation 'gtk2' Name '.' Punctuation 'WINDOW_TOPLEVEL' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'w' Name @@ -8754,14 +8809,14 @@ '.' Punctuation 'winWidth' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'settings' Name '.' Punctuation 'winHeight' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'w' Name @@ -8772,16 +8827,16 @@ 'Aporia IDE' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'settings' Name '.' Punctuation 'winMaximized' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'w' Name @@ -8789,7 +8844,7 @@ 'maximize' Name '(' Punctuation ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'win' Name '.' Punctuation 'w' Name @@ -8797,15 +8852,15 @@ 'show' Name '(' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace '# The window has to be shown before' Comment -'\n ' Text +'\n ' Text.Whitespace '# setting the position of the VPaned so that' Comment -'\n ' Text +'\n ' Text.Whitespace '# it gets set correctly, when the window is maximized.' Comment -'\n \n ' Text +'\n \n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'w' Name @@ -8816,7 +8871,7 @@ 'destroy' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'aporia' Name @@ -8824,12 +8879,12 @@ 'destroy' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'w' Name @@ -8840,7 +8895,7 @@ 'delete_event' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'aporia' Name @@ -8848,12 +8903,12 @@ 'delete_event' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'discard' Keyword -' ' Text +' ' Text.Whitespace 'win' Name '.' Punctuation 'w' Name @@ -8864,7 +8919,7 @@ 'window-state-event' Literal.String '"' Literal.String ',' Punctuation -' \n ' Text +' \n ' Text.Whitespace 'SIGNAL_FUNC' Name '(' Punctuation 'aporia' Name @@ -8872,26 +8927,26 @@ 'windowState_Changed' Name ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'nil' Keyword.Pseudo ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace '# MainBox (vbox)' Comment -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'MainBox' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'vboxNew' Name '(' Punctuation 'False' Keyword.Pseudo ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'win' Name '.' Punctuation 'w' Name @@ -8900,43 +8955,43 @@ '(' Punctuation 'MainBox' Name ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'initTopMenu' Name '(' Punctuation 'MainBox' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'initToolBar' Name '(' Punctuation 'MainBox' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'initTAndBP' Name '(' Punctuation 'MainBox' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'initFindBar' Name '(' Punctuation 'MainBox' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'initStatusBar' Name '(' Punctuation 'MainBox' Name ')' Punctuation -'\n \n ' Text +'\n \n ' Text.Whitespace 'MainBox' Name '.' Punctuation 'show' Name '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'confParseFail' Name ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'dialogs' Name '.' Punctuation 'warning' Name @@ -8945,24 +9000,24 @@ '.' Punctuation 'w' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'Error parsing config file, using default settings.' Literal.String '"' Literal.String ')' Punctuation -'\n \n' Text +'\n \n' Text.Whitespace 'nimrod_init' Name '(' Punctuation ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'initControls' Name '(' Punctuation ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'main' Name '(' Punctuation ')' Punctuation -'\n' Text +'\n' Text.Whitespace diff --git a/tests/examplefiles/nim/test.nim b/tests/examplefiles/nim/test.nim index fb23ce106b..20610bb691 100644 --- a/tests/examplefiles/nim/test.nim +++ b/tests/examplefiles/nim/test.nim @@ -5,14 +5,14 @@ for x in lines("myfile.txt"): echo "Key: ", matches[0], " Value: ", matches[1] -echo("What's your name? ") +Echo("What's your name? ") var name: string = readLine(stdin) if name == "": echo("Poor soul, you lost your name?") elif name == "name": echo("Very funny, your name is name.") else: - echo("Hi, ", name, "!") + Echo("Hi, ", name, "!") var name = readLine(stdin) case name @@ -21,29 +21,29 @@ of "": of "name": echo("Very funny, your name is name.") else: - echo("Hi, ", name, "!") + Echo("Hi, ", name, "!") from strutils import parseInt -echo("A number please: ") +Echo("A number please: ") var n = parseInt(readLine(stdin)) case n -of 0..2, 4..7: echo("The number is in the set: {0, 1, 2, 4, 5, 6, 7}") -of 3, 8: echo("The number is 3 or 8") +of 0..2, 4..7: Echo("The number is in the set: {0, 1, 2, 4, 5, 6, 7}") +of 3, 8: Echo("The number is 3 or 8") -echo("Counting to 10: ") +Echo("Counting to 10: ") var i = 1 while i <= 10: - echo($i) + Echo($i) inc(i) proc yes(question: string): bool = - echo(question, " (y/n)") + Echo(question, " (y/n)") while true: case readLine(stdin) of "y", "Y", "yes", "Yes": return true of "n", "N", "no", "No": return false - else: echo("Please be clear: yes or no") + else: Echo("Please be clear: yes or no") proc even(n: int): bool @@ -90,13 +90,4 @@ if open(f, "numbers.txt"): # reraise the unknown exception: raise finally: - close(f) - - -let - aaa: string = "aaa" - bbb: int = 3 - ccc: seq[char] = @['a', 'b'] - ddd: float32 = 43.21 - eee: bool = true - + close(f) \ No newline at end of file diff --git a/tests/examplefiles/nim/test.nim.output b/tests/examplefiles/nim/test.nim.output index 6865196fa1..4f9ec79349 100644 --- a/tests/examplefiles/nim/test.nim.output +++ b/tests/examplefiles/nim/test.nim.output @@ -1,14 +1,14 @@ 'import' Keyword.Namespace -' ' Text +' ' Text.Whitespace 're' Name -'\n\n' Text +'\n\n' Text.Whitespace 'for' Keyword -' ' Text +' ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace 'in' Operator.Word -' ' Text +' ' Text.Whitespace 'lines' Name '(' Punctuation '"' Literal.String @@ -16,46 +16,46 @@ '"' Literal.String ')' Punctuation ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'x' Name -' ' Text +' ' Text.Whitespace '=' Operator '~' Operator -' ' Text +' ' Text.Whitespace 're"' Literal.String '(' Literal.String '\\' Literal.String 'w+)=(.*)' Literal.String '"' Literal.String ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'echo' Name -' ' Text +' ' Text.Whitespace '"' Literal.String 'Key: ' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'matches' Name '[' Operator '0' Literal.Number.Integer ']' Operator ',' Punctuation -'\n ' Text +'\n ' Text.Whitespace '"' Literal.String ' Value: ' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'matches' Name '[' Operator '1' Literal.Number.Integer ']' Operator -'\n\n' Text +'\n\n' Text.Whitespace -'echo' Name +'Echo' Name '(' Punctuation '"' Literal.String 'What' Literal.String @@ -63,169 +63,169 @@ 's your name? ' Literal.String '"' Literal.String ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'name' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'string' Name.Builtin -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'readLine' Name '(' Punctuation 'stdin' Name ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'name' Name -' ' Text +' ' Text.Whitespace '=' Operator '=' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String '"' Literal.String ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'echo' Name '(' Punctuation '"' Literal.String 'Poor soul, you lost your name?' Literal.String '"' Literal.String ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'elif' Keyword -' ' Text +' ' Text.Whitespace 'name' Name -' ' Text +' ' Text.Whitespace '=' Operator '=' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String 'name' Literal.String '"' Literal.String ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'echo' Name '(' Punctuation '"' Literal.String 'Very funny, your name is name.' Literal.String '"' Literal.String ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'else' Keyword ':' Punctuation -'\n ' Text -'echo' Name +'\n ' Text.Whitespace +'Echo' Name '(' Punctuation '"' Literal.String 'Hi, ' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'name' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String '!' Literal.String '"' Literal.String ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'name' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'readLine' Name '(' Punctuation 'stdin' Name ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'name' Name -'\n' Text +'\n' Text.Whitespace 'of' Keyword -' ' Text -'"' Literal.String -'"' Literal.String -':' Punctuation -'\n ' Text +' ' Text.Whitespace +'"' Name.Label +'"' Name.Label +':' Operator +'\n ' Text.Whitespace 'echo' Name '(' Punctuation '"' Literal.String 'Poor soul, you lost your name?' Literal.String '"' Literal.String ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'of' Keyword -' ' Text -'"' Literal.String -'name' Literal.String -'"' Literal.String -':' Punctuation -'\n ' Text +' ' Text.Whitespace +'"' Name.Label +'name' Name.Label +'"' Name.Label +':' Operator +'\n ' Text.Whitespace 'echo' Name '(' Punctuation '"' Literal.String 'Very funny, your name is name.' Literal.String '"' Literal.String ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'else' Keyword ':' Punctuation -'\n ' Text -'echo' Name +'\n ' Text.Whitespace +'Echo' Name '(' Punctuation '"' Literal.String 'Hi, ' Literal.String '"' Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace 'name' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String '!' Literal.String '"' Literal.String ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace 'from' Keyword.Namespace -' ' Text +' ' Text.Whitespace 'strutils' Name -' ' Text +' ' Text.Whitespace 'import' Keyword.Namespace -' ' Text +' ' Text.Whitespace 'parseInt' Name -'\n\n' Text +'\n\n' Text.Whitespace -'echo' Name +'Echo' Name '(' Punctuation '"' Literal.String 'A number please: ' Literal.String '"' Literal.String ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'n' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'parseInt' Name '(' Punctuation 'readLine' Name @@ -233,356 +233,361 @@ 'stdin' Name ')' Punctuation ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'n' Name -'\n' Text +'\n' Text.Whitespace 'of' Keyword -' ' Text -'0' Literal.Number.Float -'..' Punctuation -'2' Literal.Number.Integer +' ' Text.Whitespace +'0' Name.Label +'.' Name.Label +'.' Name.Label +'2' Name.Label ',' Punctuation -' ' Text -'4' Literal.Number.Float -'..' Punctuation -'7' Literal.Number.Integer -':' Punctuation -' ' Text -'echo' Name +' ' Text.Whitespace +'4' Name.Label +'.' Name.Label +'.' Name.Label +'7' Name.Label +':' Operator +' ' Text.Whitespace +'Echo' Name '(' Punctuation '"' Literal.String 'The number is in the set: {0, 1, 2, 4, 5, 6, 7}' Literal.String '"' Literal.String ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'of' Keyword -' ' Text -'3' Literal.Number.Integer +' ' Text.Whitespace +'3' Name.Label ',' Punctuation -' ' Text -'8' Literal.Number.Integer -':' Punctuation -' ' Text -'echo' Name +' ' Text.Whitespace +'8' Name.Label +':' Operator +' ' Text.Whitespace +'Echo' Name '(' Punctuation '"' Literal.String 'The number is 3 or 8' Literal.String '"' Literal.String ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'echo' Name +'Echo' Name '(' Punctuation '"' Literal.String 'Counting to 10: ' Literal.String '"' Literal.String ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'i' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer -'\n' Text +'\n' Text.Whitespace 'while' Keyword -' ' Text +' ' Text.Whitespace 'i' Name -' ' Text +' ' Text.Whitespace '<' Operator '=' Operator -' ' Text +' ' Text.Whitespace '10' Literal.Number.Integer ':' Punctuation -'\n ' Text -'echo' Name +'\n ' Text.Whitespace +'Echo' Name '(' Punctuation '$' Operator 'i' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'inc' Name '(' Punctuation 'i' Name ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'yes' Name.Function '(' Punctuation 'question' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'string' Name.Builtin ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'bool' Name.Builtin -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text -'echo' Name +'\n ' Text.Whitespace +'Echo' Name '(' Punctuation 'question' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String ' (y/n)' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'while' Keyword -' ' Text +' ' Text.Whitespace 'true' Keyword.Pseudo ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'case' Keyword -' ' Text +' ' Text.Whitespace 'readLine' Name '(' Punctuation 'stdin' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'of' Keyword -' ' Text -'"' Literal.String -'y' Literal.String -'"' Literal.String +' ' Text.Whitespace +'"' Name.Label +'y' Name.Label +'"' Name.Label ',' Punctuation -' ' Text -'"' Literal.String -'Y' Literal.String -'"' Literal.String +' ' Text.Whitespace +'"' Name.Label +'Y' Name.Label +'"' Name.Label ',' Punctuation -' ' Text -'"' Literal.String -'yes' Literal.String -'"' Literal.String +' ' Text.Whitespace +'"' Name.Label +'yes' Name.Label +'"' Name.Label ',' Punctuation -' ' Text -'"' Literal.String -'Yes' Literal.String -'"' Literal.String -':' Punctuation -' ' Text +' ' Text.Whitespace +'"' Name.Label +'Yes' Name.Label +'"' Name.Label +':' Operator +' ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'true' Keyword.Pseudo -'\n ' Text +'\n ' Text.Whitespace 'of' Keyword -' ' Text -'"' Literal.String -'n' Literal.String -'"' Literal.String +' ' Text.Whitespace +'"' Name.Label +'n' Name.Label +'"' Name.Label ',' Punctuation -' ' Text -'"' Literal.String -'N' Literal.String -'"' Literal.String +' ' Text.Whitespace +'"' Name.Label +'N' Name.Label +'"' Name.Label ',' Punctuation -' ' Text -'"' Literal.String -'no' Literal.String -'"' Literal.String +' ' Text.Whitespace +'"' Name.Label +'no' Name.Label +'"' Name.Label ',' Punctuation -' ' Text -'"' Literal.String -'No' Literal.String -'"' Literal.String -':' Punctuation -' ' Text +' ' Text.Whitespace +'"' Name.Label +'No' Name.Label +'"' Name.Label +':' Operator +' ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'false' Keyword.Pseudo -'\n ' Text +'\n ' Text.Whitespace 'else' Keyword ':' Punctuation -' ' Text -'echo' Name +' ' Text.Whitespace +'Echo' Name '(' Punctuation '"' Literal.String 'Please be clear: yes or no' Literal.String '"' Literal.String ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'even' Name.Function '(' Punctuation 'n' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'int' Name.Builtin ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'bool' Name.Builtin -'\n\n' Text +'\n\n' Text.Whitespace -'proc ' Keyword +'proc' Keyword +' ' Text.Whitespace 'odd' Name.Function '(' Punctuation 'n' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'int' Name.Builtin ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'bool' Name.Builtin -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'n' Name -' ' Text +' ' Text.Whitespace '=' Operator '=' Operator -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer ':' Punctuation -' ' Text +' ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'true' Keyword.Pseudo -'\n ' Text +'\n ' Text.Whitespace 'else' Keyword ':' Punctuation -' ' Text +' ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'even' Name '(' Punctuation 'n' Name '-' Operator '1' Literal.Number.Integer ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace 'iterator' Keyword -' ' Text +' ' Text.Whitespace 'countup' Name '(' Punctuation 'a' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'b' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'int' Name.Builtin ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'int' Name.Builtin -' ' Text +' ' Text.Whitespace '=' Operator -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'res' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'a' Name -'\n ' Text +'\n ' Text.Whitespace 'while' Keyword -' ' Text +' ' Text.Whitespace 'res' Name -' ' Text +' ' Text.Whitespace '<' Operator '=' Operator -' ' Text +' ' Text.Whitespace 'b' Name ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'yield' Keyword -' ' Text +' ' Text.Whitespace 'res' Name -'\n ' Text +'\n ' Text.Whitespace 'inc' Name '(' Punctuation 'res' Name ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace 'type' Keyword -'\n ' Text +'\n ' Text.Whitespace 'TPerson' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'object' Keyword -' ' Text +' ' Text.Whitespace 'of' Keyword -' ' Text +' ' Text.Whitespace 'TObject' Name -'\n ' Text +'\n ' Text.Whitespace 'name' Name '*' Operator ':' Punctuation -' ' Text +' ' Text.Whitespace 'string' Name.Builtin -' ' Text +' ' Text.Whitespace '# the * means that `name` is accessible from other modules' Comment -'\n ' Text +'\n ' Text.Whitespace 'age' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'int' Name.Builtin -' ' Text +' ' Text.Whitespace '# no * means that the field is hidden from other modules' Comment -'\n\n ' Text +'\n\n ' Text.Whitespace 'TStudent' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'object' Keyword -' ' Text +' ' Text.Whitespace 'of' Keyword -' ' Text +' ' Text.Whitespace 'TPerson' Name -' ' Text +' ' Text.Whitespace '# TStudent inherits from TPerson' Comment -'\n ' Text +'\n ' Text.Whitespace 'id' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'int' Name.Builtin -' ' Text +' ' Text.Whitespace '# with an id field' Comment -'\n\n' Text +'\n\n' Text.Whitespace 'var' Keyword.Declaration -'\n ' Text +'\n ' Text.Whitespace 'student' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'TStudent' Name -'\n ' Text +'\n ' Text.Whitespace 'person' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'TPerson' Name -'\n' Text +'\n' Text.Whitespace 'assert' Name '(' Punctuation 'student' Name -' ' Text +' ' Text.Whitespace 'is' Operator.Word -' ' Text +' ' Text.Whitespace 'TStudent' Name ')' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace 'echo' Name '(' Punctuation @@ -591,12 +596,12 @@ 'a' Literal.String.Char "'" Literal.String.Char ',' Punctuation -' ' Text +' ' Text.Whitespace "'" Literal.String.Char 'b' Literal.String.Char "'" Literal.String.Char ',' Punctuation -' ' Text +' ' Text.Whitespace "'" Literal.String.Char 'c' Literal.String.Char "'" Literal.String.Char @@ -604,7 +609,7 @@ '.' Punctuation 'card' Name ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'stdout' Name '.' Punctuation @@ -614,197 +619,133 @@ 'Hallo' Literal.String '"' Literal.String ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'var' Keyword.Declaration -'\n ' Text +'\n ' Text.Whitespace 'f' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'TFile' Name -'\n' Text +'\n' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'open' Name '(' Punctuation 'f' Name ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String 'numbers.txt' Literal.String '"' Literal.String ')' Punctuation ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'try' Keyword ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'a' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'readLine' Name '(' Punctuation 'f' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'b' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'readLine' Name '(' Punctuation 'f' Name ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'echo' Name '(' Punctuation '"' Literal.String 'sum: ' Literal.String '"' Literal.String -' ' Text +' ' Text.Whitespace '&' Operator -' ' Text +' ' Text.Whitespace '$' Operator '(' Punctuation 'parseInt' Name '(' Punctuation 'a' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '+' Operator -' ' Text +' ' Text.Whitespace 'parseInt' Name '(' Punctuation 'b' Name ')' Punctuation ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'except' Keyword -' ' Text +' ' Text.Whitespace 'EOverflow' Name ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'echo' Name '(' Punctuation '"' Literal.String 'overflow!' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'except' Keyword -' ' Text +' ' Text.Whitespace 'EInvalidValue' Name ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'echo' Name '(' Punctuation '"' Literal.String 'could not convert string to integer' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'except' Keyword -' ' Text +' ' Text.Whitespace 'EIO' Name ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'echo' Name '(' Punctuation '"' Literal.String 'IO error!' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'except' Keyword ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'echo' Name '(' Punctuation '"' Literal.String 'Unknown exception!' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '# reraise the unknown exception:' Comment -'\n ' Text +'\n ' Text.Whitespace 'raise' Keyword -'\n ' Text +'\n ' Text.Whitespace 'finally' Keyword ':' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'close' Name '(' Punctuation 'f' Name ')' Punctuation -'\n\n\n' Text - -'let' Keyword -'\n ' Text -'aaa' Name -':' Punctuation -' ' Text -'string' Name.Builtin -' ' Text -'=' Operator -' ' Text -'"' Literal.String -'aaa' Literal.String -'"' Literal.String -'\n ' Text -'bbb' Name -':' Punctuation -' ' Text -'int' Name.Builtin -' ' Text -'=' Operator -' ' Text -'3' Literal.Number.Integer -'\n ' Text -'ccc' Name -':' Punctuation -' ' Text -'seq' Name.Builtin -'[' Operator -'char' Name.Builtin -']' Operator -' ' Text -'=' Operator -' ' Text -'@' Operator -'[' Operator -"'" Literal.String.Char -'a' Literal.String.Char -"'" Literal.String.Char -',' Punctuation -' ' Text -"'" Literal.String.Char -'b' Literal.String.Char -"'" Literal.String.Char -']' Operator -'\n ' Text -'ddd' Name -':' Punctuation -' ' Text -'float32' Name.Builtin -' ' Text -'=' Operator -' ' Text -'43' Literal.Number.Float -'.21' Literal.Number.Float -'\n ' Text -'eee' Name -':' Punctuation -' ' Text -'bool' Name.Builtin -' ' Text -'=' Operator -' ' Text -'true' Keyword.Pseudo -'\n' Text +'\n' Text.Whitespace