46 (r'#.*$', Comment), |
46 (r'#.*$', Comment), |
47 (r'[\[\]{}(),;]', Punctuation), |
47 (r'[\[\]{}(),;]', Punctuation), |
48 |
48 |
49 # keywords |
49 # keywords |
50 (r'in\b', Keyword.Pseudo), |
50 (r'in\b', Keyword.Pseudo), |
|
51 (r'isa\b', Keyword.Pseudo), |
51 (r'(true|false)\b', Keyword.Constant), |
52 (r'(true|false)\b', Keyword.Constant), |
52 (r'(local|global|const)\b', Keyword.Declaration), |
53 (r'(local|global|const)\b', Keyword.Declaration), |
53 (words([ |
54 (words([ |
54 'function', 'type', 'typealias', 'abstract', 'immutable', |
55 'function', 'type', 'typealias', 'abstract', 'immutable', |
55 'baremodule', 'begin', 'bitstype', 'break', 'catch', 'ccall', |
56 'baremodule', 'begin', 'bitstype', 'break', 'catch', 'ccall', |
56 'continue', 'do', 'else', 'elseif', 'end', 'export', 'finally', |
57 'continue', 'do', 'else', 'elseif', 'end', 'export', 'finally', |
57 'for', 'if', 'import', 'importall', 'let', 'macro', 'module', |
58 'for', 'if', 'import', 'importall', 'let', 'macro', 'module', |
58 'quote', 'return', 'try', 'using', 'while'], |
59 'mutable', 'primitive', 'quote', 'return', 'struct', 'try', |
|
60 'using', 'while'], |
59 suffix=r'\b'), Keyword), |
61 suffix=r'\b'), Keyword), |
60 |
62 |
61 # NOTE |
63 # NOTE |
62 # Patterns below work only for definition sites and thus hardly reliable. |
64 # Patterns below work only for definition sites and thus hardly reliable. |
63 # |
65 # |