diff options
author | Tim Hatch <tim@timhatch.com> | 2016-06-03 11:52:10 -0700 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2016-06-03 11:52:10 -0700 |
commit | d72791b740c7ed59e17fb6e0d953ff84ae735af9 (patch) | |
tree | 0675b7910419a55b29e614f10bab25e16db7097e | |
parent | 7c889a5a92b8622bf56b3d8f6a9953bba49ce5e8 (diff) | |
download | pygments-d72791b740c7ed59e17fb6e0d953ff84ae735af9.tar.gz |
Re-add more comment forms in Properties lexer to unbreak tests
-rw-r--r-- | pygments/lexers/configs.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pygments/lexers/configs.py b/pygments/lexers/configs.py index 27d4bcb6..5b9cbfa2 100644 --- a/pygments/lexers/configs.py +++ b/pygments/lexers/configs.py @@ -115,6 +115,8 @@ class PropertiesLexer(RegexLexer): (r'^(\w+)([ \t])(\w+\s*)$', bygroups(Name.Attribute, Text, String)), (r'^\w+(\\[ \t]\w*)*$', Name.Attribute), (r'(^ *)([#!].*)', bygroups(Text, Comment)), + # More controversial comments + (r'(^ *)((?:;|//).*)', bygroups(Text, Comment)), (r'(.*?)([ \t]*)([=:])([ \t]*)(.*(?:(?<=\\)\n.*)*)', bygroups(Name.Attribute, Text, Operator, Text, String)), (r'\s', Text), |