diff options
author | Colin Kennedy <colinvfx@gmail.com> | 2019-12-04 23:21:00 -0800 |
---|---|---|
committer | Colin Kennedy <colinvfx@gmail.com> | 2019-12-04 23:21:00 -0800 |
commit | af540be149952e279de41b1f5b773b3e9068141d (patch) | |
tree | 28fc78d38dd1c4aa46b29774b2c67f4bb79eccd1 | |
parent | 39a007c8843809696f03f05612dec4433ac0cab4 (diff) | |
download | pygments-git-af540be149952e279de41b1f5b773b3e9068141d.tar.gz |
Replaced all entries `Generic` with `Text` or `Punctuation`
-rw-r--r-- | pygments/lexers/usd.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pygments/lexers/usd.py b/pygments/lexers/usd.py index 4b2a56a5..b2d836c5 100644 --- a/pygments/lexers/usd.py +++ b/pygments/lexers/usd.py @@ -6,7 +6,7 @@ from pygments.lexer import RegexLexer, bygroups from pygments.lexer import words as words_ from pygments.lexers._usd_builtins import COMMON_ATTRIBUTES, KEYWORDS, \ OPERATORS, SPECIAL_NAMES, TYPES -from pygments.token import Comment, Generic, Keyword, Name, Number, Operator, \ +from pygments.token import Comment, Keyword, Name, Number, Operator, \ Punctuation, String, Text, Whitespace __all__ = ["UsdLexer"] @@ -47,7 +47,7 @@ class UsdLexer(RegexLexer): Keyword.Type, Whitespace, Name.Attribute, - Generic, + Text, Name.Keyword.Tokens, Whitespace, Operator, @@ -63,7 +63,7 @@ class UsdLexer(RegexLexer): Keyword.Type, Whitespace, Name.Attribute, - Generic, + Text, Name.Keyword.Tokens, Whitespace, Operator, @@ -79,7 +79,7 @@ class UsdLexer(RegexLexer): Keyword.Type, Whitespace, Name.Attribute, - Generic, + Text, Name.Keyword.Tokens, Whitespace, Operator, @@ -93,7 +93,7 @@ class UsdLexer(RegexLexer): Keyword.Type, Whitespace, Name.Attribute, - Generic, + Text, Name.Keyword.Tokens, Whitespace, Operator, @@ -110,8 +110,8 @@ class UsdLexer(RegexLexer): + [(r"[\(\)\[\]{}]", Punctuation)] + [ ("#.*?$", Comment.Single), - (",", Generic), - (";", Generic), # ";"s are allowed to combine separate metadata lines + (",", Punctuation), + (";", Punctuation), # ";"s are allowed to combine separate metadata lines ("=", Operator), ("[-]?([0-9]*[.])?[0-9]+", Number), (r"'''(?:.|\n)*?'''", String), @@ -123,6 +123,6 @@ class UsdLexer(RegexLexer): (r'\(.*"[.\\n]*".*\)', String.Doc), (r"\A#usda .+$", Comment.Hashbang), (r"\s+", Text), - (r"[\w_:\.]+", Generic), + (r"[\w_:\.]+", Text), ], } |