eric6/ThirdParty/Pygments/pygments/lexers/julia.py

changeset 7547
21b0534faebc
parent 6942
2602857055c5
child 7701
25f42e208e08
equal deleted inserted replaced
7546:bf5f777260a6 7547:21b0534faebc
3 pygments.lexers.julia 3 pygments.lexers.julia
4 ~~~~~~~~~~~~~~~~~~~~~ 4 ~~~~~~~~~~~~~~~~~~~~~
5 5
6 Lexers for the Julia language. 6 Lexers for the Julia language.
7 7
8 :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS. 8 :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
9 :license: BSD, see LICENSE for details. 9 :license: BSD, see LICENSE for details.
10 """ 10 """
11 11
12 import re 12 import re
13 13
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 #

eric ide

mercurial