summaryrefslogtreecommitdiff
path: root/pygments/lexers/other.py
diff options
context:
space:
mode:
authorTim Hatch <tim@timhatch.com>2012-03-09 12:06:19 -0800
committerTim Hatch <tim@timhatch.com>2012-03-09 12:06:19 -0800
commit6b7349b7279cb06dd4f8a1020fa2b3d8dc66a34a (patch)
treef2ca44850a85cc25ab8d758cf9904a112a921a80 /pygments/lexers/other.py
parentc91c3ff7df0688be4f51888d45322969cecb9090 (diff)
downloadpygments-6b7349b7279cb06dd4f8a1020fa2b3d8dc66a34a.tar.gz
Minor lint fixes
--- pygments/lexers/other.py | 12 ++++++------ pygments/lexers/shell.py | 6 +++--- pygments/lexers/sql.py | 8 ++++---- 3 files changed, 13 insertions(+), 13 deletions(-)
Diffstat (limited to 'pygments/lexers/other.py')
-rw-r--r--pygments/lexers/other.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/pygments/lexers/other.py b/pygments/lexers/other.py
index 7af85712..bb5933df 100644
--- a/pygments/lexers/other.py
+++ b/pygments/lexers/other.py
@@ -2608,7 +2608,7 @@ class SnobolLexer(RegexLexer):
# ASCII equivalents of original operators
# | for the EBCDIC equivalent, ! likewise
# \ for EBCDIC negation
- (r'\*\*|[\?\$\.!%\*/#+\-@\|&\\!=]', Operator),
+ (r'\*\*|[\?\$\.!%\*/#+\-@\|&\\=]', Operator),
(r'"[^"]*"', String),
(r"'[^']*'", String),
# Accept SPITBOL syntax for real numbers
@@ -3244,8 +3244,8 @@ class OpenEdgeLexer(RegexLexer):
(r'[0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]?', Number.Float),
(r'[0-9]+', Number.Integer),
(r'\s+', Text),
- (r'[\\+\\-\\*\\/\\=]', Operator),
- (r'[\\.\\:\\(\\)]', Punctuation),
+ (r'[+*/=-]', Operator),
+ (r'[.:()]', Punctuation),
(r'.', Name.Variable), # Lazy catch-all
],
'comment': [
@@ -3279,7 +3279,7 @@ class BroLexer(RegexLexer):
tokens = {
'root': [
# Whitespace
- ('^@.*?\n', Comment.Preproc),
+ (r'^@.*?\n', Comment.Preproc),
(r'#.*?\n', Comment.Single),
(r'\n', Text),
(r'\s+', Text),
@@ -3315,8 +3315,8 @@ class BroLexer(RegexLexer):
(r'/', String.Regex, 'regex'),
(r'"', String, 'string'),
# Operators
- (r'[!%*/+-:<=>?~|]', Operator),
- (r'([-+=&|]{2}|[+-=!><]=)', Operator),
+ (r'[!%*/+:<=>?~|-]', Operator),
+ (r'([-+=&|]{2}|[+=!><-]=)', Operator),
(r'(in|match)\b', Operator.Word),
(r'[{}()\[\]$.,;]', Punctuation),
# Identfier