ThirdParty/Pygments/pygments/lexers/rebol.py

changeset 6651
e8f3b5568b21
parent 5713
6762afd9f963
equal deleted inserted replaced
6650:1dd52aa8897c 6651:e8f3b5568b21
100 yield match.start(), Name.Exception, word 100 yield match.start(), Name.Exception, word
101 elif re.match('REBOL$', word): 101 elif re.match('REBOL$', word):
102 yield match.start(), Generic.Heading, word 102 yield match.start(), Generic.Heading, word
103 elif re.match("to-.*", word): 103 elif re.match("to-.*", word):
104 yield match.start(), Keyword, word 104 yield match.start(), Keyword, word
105 elif re.match('(\+|-|\*|/|//|\*\*|and|or|xor|=\?|=|==|<>|<|>|<=|>=)$', 105 elif re.match(r'(\+|-|\*|/|//|\*\*|and|or|xor|=\?|=|==|<>|<|>|<=|>=)$',
106 word): 106 word):
107 yield match.start(), Operator, word 107 yield match.start(), Operator, word
108 elif re.match(".*\?$", word): 108 elif re.match(r".*\?$", word):
109 yield match.start(), Keyword, word 109 yield match.start(), Keyword, word
110 elif re.match(".*\!$", word): 110 elif re.match(r".*\!$", word):
111 yield match.start(), Keyword.Type, word 111 yield match.start(), Keyword.Type, word
112 elif re.match("'.*", word): 112 elif re.match("'.*", word):
113 yield match.start(), Name.Variable.Instance, word # lit-word 113 yield match.start(), Name.Variable.Instance, word # lit-word
114 elif re.match("#.*", word): 114 elif re.match("#.*", word):
115 yield match.start(), Name.Label, word # issue 115 yield match.start(), Name.Label, word # issue
295 yield match.start(), Keyword, word 295 yield match.start(), Keyword, word
296 elif re.match(r'(JNICALL|stdcall|cdecl|infix)$', word): 296 elif re.match(r'(JNICALL|stdcall|cdecl|infix)$', word):
297 yield match.start(), Keyword.Namespace, word 297 yield match.start(), Keyword.Namespace, word
298 elif re.match("to-.*", word): 298 elif re.match("to-.*", word):
299 yield match.start(), Keyword, word 299 yield match.start(), Keyword, word
300 elif re.match('(\+|-\*\*|-|\*\*|//|/|\*|and|or|xor|=\?|===|==|=|<>|<=|>=|' 300 elif re.match(r'(\+|-\*\*|-|\*\*|//|/|\*|and|or|xor|=\?|===|==|=|<>|<=|>=|'
301 '<<<|>>>|<<|>>|<|>%)$', word): 301 r'<<<|>>>|<<|>>|<|>%)$', word):
302 yield match.start(), Operator, word 302 yield match.start(), Operator, word
303 elif re.match(".*\!$", word): 303 elif re.match(r".*\!$", word):
304 yield match.start(), Keyword.Type, word 304 yield match.start(), Keyword.Type, word
305 elif re.match("'.*", word): 305 elif re.match("'.*", word):
306 yield match.start(), Name.Variable.Instance, word # lit-word 306 yield match.start(), Name.Variable.Instance, word # lit-word
307 elif re.match("#.*", word): 307 elif re.match("#.*", word):
308 yield match.start(), Name.Label, word # issue 308 yield match.start(), Name.Label, word # issue

eric ide

mercurial