summaryrefslogtreecommitdiffstats
path: root/src/pyscanner.l
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-05-22 16:57:05 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-05-22 16:57:05 (GMT)
commit48817487de116ee526714587900380e53b195f5e (patch)
tree751512113237cceb9dd428902957594ce64c0b41 /src/pyscanner.l
parentf10c9a42cd3b506cb5bb5cf0192c9e221adafa72 (diff)
downloadDoxygen-48817487de116ee526714587900380e53b195f5e.zip
Doxygen-48817487de116ee526714587900380e53b195f5e.tar.gz
Doxygen-48817487de116ee526714587900380e53b195f5e.tar.bz2
Small problems when displaying python code
- with was not colored (in pyscanner the KEYWORD item was not used, so removed as dead code) - incorrect handling of a 'triquote' at end of string - incorrect handling of a stringprefix followed by the end of a string
Diffstat (limited to 'src/pyscanner.l')
-rw-r--r--src/pyscanner.l1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/pyscanner.l b/src/pyscanner.l
index 5c9aef5..4718e3b 100644
--- a/src/pyscanner.l
+++ b/src/pyscanner.l
@@ -487,7 +487,6 @@ SHORTSTRINGITEM ({SHORTSTRINGCHAR}|{ESCAPESEQ})
SHORTSTRINGCHAR [^\\\n"]
STRINGLITERAL {STRINGPREFIX}?( {SHORTSTRING} | {LONGSTRING})
STRINGPREFIX ("r"|"u"|"ur"|"R"|"U"|"UR"|"Ur"|"uR")
-KEYWORD ("lambda"|"import"|"class"|"assert"|"as"|"from"|"global"|"def"|"True"|"False")
FLOWKW ("or"|"and"|"is"|"not"|"print"|"for"|"in"|"if"|"try"|"except"|"yield"|"raise"|"break"|"continue"|"pass"|"if"|"return"|"while"|"elif"|"else"|"finally")
POUNDCOMMENT "#"[^#\n][^\n]*
SCRIPTCOMMENT "#!".*