summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAmr Hesham <amr96@programmer.net>2023-03-02 19:20:42 +0200
committerGitHub <noreply@github.com>2023-03-02 18:20:42 +0100
commit9e60d250cf47462c47ee051ed805537180fac064 (patch)
tree4fd41eb47e40a2dd1e98cfbc88b2673fa23f2b2b /tests
parenta03643e2845b4fb14171b8d2e668255740071271 (diff)
downloadpygments-git-9e60d250cf47462c47ee051ed805537180fac064.tar.gz
Fix order of minus and arrow operators in Carbon lexer (#2367)
Diffstat (limited to 'tests')
-rw-r--r--tests/examplefiles/carbon/declarations.carbon.output12
-rw-r--r--tests/examplefiles/carbon/example.carbon.output3
2 files changed, 5 insertions, 10 deletions
diff --git a/tests/examplefiles/carbon/declarations.carbon.output b/tests/examplefiles/carbon/declarations.carbon.output
index d6012526..b1db4d97 100644
--- a/tests/examplefiles/carbon/declarations.carbon.output
+++ b/tests/examplefiles/carbon/declarations.carbon.output
@@ -111,8 +111,7 @@
'(' Punctuation
')' Punctuation
' ' Text.Whitespace
-'-' Operator
-'>' Punctuation
+'->' Operator
' ' Text.Whitespace
'Self' Keyword
';' Punctuation
@@ -135,8 +134,7 @@
'Self' Keyword
')' Punctuation
' ' Text.Whitespace
-'-' Operator
-'>' Punctuation
+'->' Operator
' ' Text.Whitespace
'Self' Keyword
';' Punctuation
@@ -159,8 +157,7 @@
'i32' Keyword.Type
')' Punctuation
' ' Text.Whitespace
-'-' Operator
-'>' Punctuation
+'->' Operator
' ' Text.Whitespace
'Self' Keyword
';' Punctuation
@@ -232,8 +229,7 @@
'(' Punctuation
')' Punctuation
' ' Text.Whitespace
-'-' Operator
-'>' Punctuation
+'->' Operator
' ' Text.Whitespace
'partial' Keyword
' ' Text.Whitespace
diff --git a/tests/examplefiles/carbon/example.carbon.output b/tests/examplefiles/carbon/example.carbon.output
index 962bf7e4..394438a0 100644
--- a/tests/examplefiles/carbon/example.carbon.output
+++ b/tests/examplefiles/carbon/example.carbon.output
@@ -33,8 +33,7 @@
')' Punctuation
')' Punctuation
' ' Text.Whitespace
-'-' Operator
-'>' Punctuation
+'->' Operator
' ' Text.Whitespace
'i64' Keyword.Type
' ' Text.Whitespace