diff options
| author | Colin Kennedy <colinvfx@gmail.com> | 2019-12-04 23:33:05 -0800 |
|---|---|---|
| committer | Colin Kennedy <colinvfx@gmail.com> | 2019-12-04 23:33:05 -0800 |
| commit | 3ab3a081e0261f575c017ff8a59c1dc32d1bbc96 (patch) | |
| tree | 050d136ac23c8688bc2d258c95fc5d923a327e0f /tests/test_usd.py | |
| parent | 9edc8b4f4fd7049964c953b27f91a99015e78e2e (diff) | |
| download | pygments-git-3ab3a081e0261f575c017ff8a59c1dc32d1bbc96.tar.gz | |
Replaced `Generic` with `Text` and `Punctuation` in test_usd.py
Diffstat (limited to 'tests/test_usd.py')
| -rw-r--r-- | tests/test_usd.py | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/tests/test_usd.py b/tests/test_usd.py index 03aec0df..4ebf32a8 100644 --- a/tests/test_usd.py +++ b/tests/test_usd.py @@ -6,7 +6,7 @@ import textwrap import unittest -from pygments import UsdLexer +from pygments.lexers import UsdLexer from pygments.token import Keyword, Literal, Name, Operator, Punctuation, \ String, Text @@ -169,10 +169,10 @@ class Features(_Common): (Text, " "), (Punctuation, "["), (Literal.Number, "10.1"), - (Generic, ","), + (Punctuation, ","), (Text, " "), (Literal.Number, "12.0"), - (Generic, ","), + (Punctuation, ","), (Text, " "), (Literal.Number, "13"), (Punctuation, "]"), @@ -193,10 +193,10 @@ class Features(_Common): (Text, " "), (Punctuation, "["), (Literal.Number, "10.1"), - (Generic, ","), + (Punctuation, ","), (Text, " "), (Literal.Number, "12.0"), - (Generic, ","), + (Punctuation, ","), (Text, " "), (Literal.Number, "13"), (Punctuation, "]"), @@ -227,10 +227,10 @@ class Features(_Common): (Text, u" "), (Punctuation, u"["), (Literal.Number, u"8"), - (Generic, u","), + (Punctuation, u","), (Text, u" "), (Literal.Number, u"10"), - (Generic, u","), + (Punctuation, u","), (Text, u" "), (Literal.Number, u"14"), (Punctuation, u"]"), @@ -240,7 +240,7 @@ class Features(_Common): (Keyword.Type, u"int[]"), (Text.Whitespace, u" "), (Name.Attribute, u"foo"), - (Generic, u"."), + (Punctuation, u"."), (Name.Keyword.Tokens, u"timeSamples"), (Text.Whitespace, u" "), (Operator, u"="), @@ -248,32 +248,32 @@ class Features(_Common): (Punctuation, u"{"), (Text, u"\n "), (Literal.Number, u"1"), - (Generic, u":"), + (Punctuation, u":"), (Text, u" "), (Punctuation, u"["), (Literal.Number, u"8"), - (Generic, u","), + (Punctuation, u","), (Text, u" "), (Literal.Number, u"0"), - (Generic, u","), + (Punctuation, u","), (Text, u" "), (Literal.Number, u"14"), (Punctuation, u"]"), - (Generic, u","), + (Punctuation, u","), (Text, u"\n "), (Literal.Number, u"2"), - (Generic, u":"), + (Punctuation, u":"), (Text, u" "), (Punctuation, u"["), (Literal.Number, u"-8"), - (Generic, u","), + (Punctuation, u","), (Text, u" "), (Literal.Number, u"0"), - (Generic, u","), + (Punctuation, u","), (Text, u" "), (Literal.Number, u"14"), (Punctuation, u"]"), - (Generic, u","), + (Punctuation, u","), (Text, u"\n"), (Punctuation, u"}"), (Text, u"\n"), @@ -307,7 +307,7 @@ class Features(_Common): (Literal.Number, u"8"), (Text, u" "), (Literal.Number, u"8.0123312132"), - (Generic, u","), + (Punctuation, u","), (Text, u" "), (Literal.Number, u"-4"), (Text, u" "), @@ -343,7 +343,7 @@ class Features(_Common): [ (Keyword.Tokens, u"def"), (Text, u" "), - (Generic, u"Xform"), + (Text, u"Xform"), (Text, u" "), (Literal.String, u'"BottleMedical"'), (Text, u" "), @@ -394,7 +394,7 @@ class Features(_Common): (Text, u" "), (Punctuation, u"["), (Literal.String, u'"modelingVariant"'), - (Generic, u","), + (Punctuation, u","), (Text, u" "), (Literal.String, u'"shadingComplexity"'), (Punctuation, u"]"), @@ -521,9 +521,9 @@ class EdgeCases(_Common): [ (Literal.String.Interpol, u"@firststring@"), (Text, u" "), - (Generic, u"something"), + (Text, u"something"), (Text, u" "), - (Generic, u"else"), + (Text, u"else"), (Text, u" "), (Literal.String.Interpol, u"@secondstring@"), (Text, u"\n"), @@ -537,9 +537,9 @@ class EdgeCases(_Common): [ (Literal.String, u"'firststring'"), (Text, u" "), - (Generic, u"something"), + (Text, u"something"), (Text, u" "), - (Generic, u"else"), + (Text, u"else"), (Text, u" "), (Literal.String, u"'secondstring'"), (Text, u"\n"), @@ -553,9 +553,9 @@ class EdgeCases(_Common): [ (Literal.String, u"'firststring'"), (Text, u" "), - (Generic, u"something"), + (Text, u"something"), (Text, u" "), - (Generic, u"else"), + (Text, u"else"), (Text, u" "), (Literal.String, u"'secondstring'"), (Text, u"\n"), |
