summaryrefslogtreecommitdiff
path: root/tests/examplefiles
diff options
context:
space:
mode:
authorDavid Corbett <corbett.dav@northeastern.edu>2022-08-22 12:43:31 -0400
committerGitHub <noreply@github.com>2022-08-22 18:43:31 +0200
commitcbc7143f583caf05729b19c7dce4039d466a48cd (patch)
treef457b7cbb6c190bee45d918c815fad44b88fb743 /tests/examplefiles
parent8a528f999462dca75806e37a8543c5fcaad8aef9 (diff)
downloadpygments-git-cbc7143f583caf05729b19c7dce4039d466a48cd.tar.gz
Fix the lexing of Inform 6 properties and doubles (#2214)
Diffstat (limited to 'tests/examplefiles')
-rw-r--r--tests/examplefiles/inform6/inform6_example4
-rw-r--r--tests/examplefiles/inform6/inform6_example.output23
2 files changed, 26 insertions, 1 deletions
diff --git a/tests/examplefiles/inform6/inform6_example b/tests/examplefiles/inform6/inform6_example
index 3eaef8c7..c7d5de67 100644
--- a/tests/examplefiles/inform6/inform6_example
+++ b/tests/examplefiles/inform6/inform6_example
@@ -73,7 +73,7 @@ Property long
! to the semicolon
;
Property additive;
-Property individual;
+Property individual 1;
Iffalse true;
Property long individual;
Property long individual individual;
@@ -334,6 +334,8 @@ Extend only 'feel' 'touch' replace * noun -> Feel;
a = '''; ! character
a = $09afAF;
a = $$01;
+ a = $+1.0;
+ a = $<-1E-3;
a = ##Eat; a = #a$Eat;
a = #g$self;
a = #n$!word;
diff --git a/tests/examplefiles/inform6/inform6_example.output b/tests/examplefiles/inform6/inform6_example.output
index 404cb052..ccff13be 100644
--- a/tests/examplefiles/inform6/inform6_example.output
+++ b/tests/examplefiles/inform6/inform6_example.output
@@ -525,6 +525,9 @@
'Property' Keyword
' ' Text
'individual' Name.Constant
+' ' Text
+'' Text
+'1' Literal.Number.Integer
'' Punctuation
';' Punctuation
'\n' Text
@@ -3478,6 +3481,26 @@
'=' Operator
' ' Text
'' Text
+'$+1.0' Literal.Number.Float
+'' Punctuation
+';' Punctuation
+'\n ' Text
+'' Text
+'a' Name
+' ' Text
+'=' Operator
+' ' Text
+'' Text
+'$<-1E-3' Literal.Number.Float
+'' Punctuation
+';' Punctuation
+'\n ' Text
+'' Text
+'a' Name
+' ' Text
+'=' Operator
+' ' Text
+'' Text
'##' Operator
'Eat' Name
'' Punctuation