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

changeset 7983
54c5cfbb1e29
parent 7701
25f42e208e08
equal deleted inserted replaced
7982:48d210e41c65 7983:54c5cfbb1e29
3 pygments.lexers.go 3 pygments.lexers.go
4 ~~~~~~~~~~~~~~~~~~ 4 ~~~~~~~~~~~~~~~~~~
5 5
6 Lexers for the Google Go language. 6 Lexers for the Google Go language.
7 7
8 :copyright: Copyright 2006-2020 by the Pygments team, see AUTHORS. 8 :copyright: Copyright 2006-2021 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
88 String.Char), 88 String.Char),
89 # StringLiteral 89 # StringLiteral
90 # -- raw_string_lit 90 # -- raw_string_lit
91 (r'`[^`]*`', String), 91 (r'`[^`]*`', String),
92 # -- interpreted_string_lit 92 # -- interpreted_string_lit
93 (r'"(\\\\|\\"|[^"])*"', String), 93 (r'"(\\\\|\\[^\\]|[^"\\])*"', String),
94 # Tokens 94 # Tokens
95 (r'(<<=|>>=|<<|>>|<=|>=|&\^=|&\^|\+=|-=|\*=|/=|%=|&=|\|=|&&|\|\|' 95 (r'(<<=|>>=|<<|>>|<=|>=|&\^=|&\^|\+=|-=|\*=|/=|%=|&=|\|=|&&|\|\|'
96 r'|<-|\+\+|--|==|!=|:=|\.\.\.|[+\-*/%&])', Operator), 96 r'|<-|\+\+|--|==|!=|:=|\.\.\.|[+\-*/%&])', Operator),
97 (r'[|^<>=!()\[\]{}.,;:]', Punctuation), 97 (r'[|^<>=!()\[\]{}.,;:]', Punctuation),
98 # identifier 98 # identifier

eric ide

mercurial