Skip to content

Commit

Permalink
Merge from 3.x: PR #4527
Browse files Browse the repository at this point in the history
Fixes #4526
  • Loading branch information
ccordoba12 committed Jun 1, 2017
2 parents 8967e05 + 40cfa99 commit 64bdbde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spyder/utils/syntaxhighlighters.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def make_python_patterns(additional_keywords=[], additional_builtins=[]):
comment = any("comment", [r"#[^\n]*"])
instance = any("instance", [r"\bself\b",
(r"^\s*@([a-zA-Z_][a-zA-Z0-9_]*)"
r"(.[a-zA-Z_][a-zA-Z0-9_]*)*")])
r"(\.[a-zA-Z_][a-zA-Z0-9_]*)*")])
number = any("number",
[r"\b[+-]?[0-9]+[lLjJ]?\b",
r"\b[+-]?0[xX][0-9A-Fa-f]+[lL]?\b",
Expand Down

0 comments on commit 64bdbde

Please sign in to comment.