From b3955bae9598a60a51dacd0b637f6006ae6afff7 Mon Sep 17 00:00:00 2001 From: SHEN Wenqiang Date: Mon, 13 Jun 2016 01:19:16 +0000 Subject: ncl.py edited online with Bitbucket some punctuations have added --- pygments/lexers/ncl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pygments/lexers/ncl.py') diff --git a/pygments/lexers/ncl.py b/pygments/lexers/ncl.py index 23eba786..f3324b09 100644 --- a/pygments/lexers/ncl.py +++ b/pygments/lexers/ncl.py @@ -35,7 +35,7 @@ class NCLLexer(RegexLexer): (r';.*\n', Comment), include('strings'), include('core'), - (r'[a-z][\w$]*', Name), + (r'[a-zA-Z_]\w*', Name), include('nums'), (r'[\s]+', Text), ], @@ -62,7 +62,7 @@ class NCLLexer(RegexLexer): (r'[\^*+\-/<>]', Operator), # punctuation: - (r'[\[\]():@$.,]', Punctuation), + (r'[\[\]():@$.,]\\{}', Punctuation), (r'[=:]', Punctuation), # Intrinsics -- cgit v1.2.1