summaryrefslogtreecommitdiff
path: root/pygments/lexers/other.py
diff options
context:
space:
mode:
authorGaurav Jain <gaurav@gauravjain.org>2014-05-15 20:50:25 -0400
committerGaurav Jain <gaurav@gauravjain.org>2014-05-15 20:50:25 -0400
commit4eb6e4dd67d57197d3a077cf4aeca6736ef85d5b (patch)
tree4be64c9c482ab43bb16c26cbd7a49f1a6af9fff8 /pygments/lexers/other.py
parentf8a5949ecb6e4865aad9c2511d14b5a9ee87bdc6 (diff)
downloadpygments-4eb6e4dd67d57197d3a077cf4aeca6736ef85d5b.tar.gz
Superfluous character class when only one char
Diffstat (limited to 'pygments/lexers/other.py')
-rw-r--r--pygments/lexers/other.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pygments/lexers/other.py b/pygments/lexers/other.py
index cef71f95..5bb60560 100644
--- a/pygments/lexers/other.py
+++ b/pygments/lexers/other.py
@@ -1306,9 +1306,9 @@ class ModelicaLexer(RegexLexer):
(r'\d+[Ll]?', Number.Integer),
(r'[~!%^&*+=|?:<>/-]', Operator),
(r'(true|false|NULL|Real|Integer|Boolean)\b', Name.Builtin),
- (r'([a-zA-Z_][\w]*|[\'][^\']+[\'])'
+ (r'([a-zA-Z_][\w]*|\'[^\']+\')'
r'([\[\d,:\]]*)'
- r'(\.([a-zA-Z_][\w]*|[\'][^\']+[\']))+'
+ r'(\.([a-zA-Z_][\w]*|\'[^\']+\'))+'
r'([\[\d,:\]]*)', Name.Class),
(r'(\'[\w\+\-\*\/\^]+\'|\w+)', Name),
(r'[()\[\]{},.;]', Punctuation),
@@ -1350,7 +1350,7 @@ class ModelicaLexer(RegexLexer):
'classes': [
(r'(operator)?(\s+)?(block|class|connector|end|function|model|'
r'operator|package|record|type)(\s+)'
- r'((?!if|for|when|while)[A-Za-z_]\w*|[\'][^\']+[\'])([;]?)',
+ r'((?!if|for|when|while)[A-Za-z_]\w*|\'[^\']+\')([;]?)',
bygroups(Keyword, Text, Keyword, Text, Name.Class, Text))
],
'quoted_ident': [