Skip to content
Prev Previous commit
updated: objectpascal testdata
  • Loading branch information
codiacdev authored Nov 16, 2023
commit e971f3de91f19745be970450889fec6d12d4d738
70 changes: 34 additions & 36 deletions lexers/testdata/objectpascal.expected
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,15 @@
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":"="},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumberHex","value":"1024"},
{"type":"LiteralNumberInteger","value":"1024"},
{"type":"Punctuation","value":";"},
{"type":"Text","value":"\n"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"CLITERALNUMBERFLOAT"},
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":"="},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumberHex","value":"0"},
{"type":"LiteralNumberFloat","value":".123"},
{"type":"LiteralNumberFloat","value":"0.123"},
{"type":"Punctuation","value":";"},
{"type":"Text","value":"\n"},
{"type":"TextWhitespace","value":" "},
Expand All @@ -91,7 +90,7 @@
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":"="},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumberHex","value":"123"},
{"type":"LiteralNumberInteger","value":"123"},
{"type":"Punctuation","value":";"},
{"type":"Text","value":"\n"},
{"type":"TextWhitespace","value":" "},
Expand All @@ -118,7 +117,7 @@
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":"="},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumberHex","value":"1E18"},
{"type":"LiteralNumberFloat","value":"1E18"},
{"type":"Punctuation","value":";"},
{"type":"Text","value":"\n\n"},
{"type":"KeywordReserved","value":"const"},
Expand Down Expand Up @@ -162,7 +161,7 @@
{"type":"Operator","value":"="},
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":"-"},
{"type":"LiteralNumberHex","value":"1"},
{"type":"LiteralNumberInteger","value":"1"},
{"type":"Punctuation","value":","},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"hidden"},
Expand All @@ -180,15 +179,15 @@
{"type":"KeywordReserved","value":"array"},
{"type":"TextWhitespace","value":" "},
{"type":"Punctuation","value":"["},
{"type":"LiteralNumberHex","value":"0"},
{"type":"LiteralNumberInteger","value":"0"},
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":".."},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"CBUFFERSIZE"},
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":"-"},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumberHex","value":"1"},
{"type":"LiteralNumberInteger","value":"1"},
{"type":"Punctuation","value":"]"},
{"type":"TextWhitespace","value":" "},
{"type":"KeywordReserved","value":"of"},
Expand Down Expand Up @@ -230,7 +229,7 @@
{"type":"TextWhitespace","value":" "},
{"type":"KeywordReserved","value":"of"},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumberHex","value":"0"},
{"type":"LiteralNumberInteger","value":"0"},
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":".."},
{"type":"TextWhitespace","value":" "},
Expand All @@ -241,11 +240,11 @@
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":"*"},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumberHex","value":"8"},
{"type":"LiteralNumberInteger","value":"8"},
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":"-"},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumberHex","value":"1"},
{"type":"LiteralNumberInteger","value":"1"},
{"type":"Punctuation","value":";"},
{"type":"Text","value":"\n\n"},
{"type":"TextWhitespace","value":" "},
Expand All @@ -268,7 +267,7 @@
{"type":"KeywordReserved","value":"of"},
{"type":"Text","value":"\n"},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumberHex","value":"0"},
{"type":"LiteralNumberInteger","value":"0"},
{"type":"Operator","value":":"},
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":"("},
Expand All @@ -283,7 +282,7 @@
{"type":"Punctuation","value":";"},
{"type":"Text","value":"\n"},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumberHex","value":"1"},
{"type":"LiteralNumberInteger","value":"1"},
{"type":"Operator","value":":"},
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":"("},
Expand All @@ -293,11 +292,11 @@
{"type":"KeywordReserved","value":"array"},
{"type":"TextWhitespace","value":" "},
{"type":"Punctuation","value":"["},
{"type":"LiteralNumberHex","value":"0"},
{"type":"LiteralNumberInteger","value":"0"},
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":".."},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumberHex","value":"1"},
{"type":"LiteralNumberInteger","value":"1"},
{"type":"Punctuation","value":"]"},
{"type":"TextWhitespace","value":" "},
{"type":"KeywordReserved","value":"of"},
Expand Down Expand Up @@ -1283,7 +1282,7 @@
{"type":"TextWhitespace","value":" "},
{"type":"Keyword","value":"default"},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumberHex","value":"0"},
{"type":"LiteralNumberInteger","value":"0"},
{"type":"Punctuation","value":";"},
{"type":"Text","value":"\n"},
{"type":"TextWhitespace","value":" "},
Expand Down Expand Up @@ -1315,7 +1314,7 @@
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":":="},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumberHex","value":"1"},
{"type":"LiteralNumberInteger","value":"1"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":" "},
{"type":"CommentSingle","value":"// ???"},
Expand Down Expand Up @@ -1442,7 +1441,7 @@
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":":="},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumberHex","value":"1"},
{"type":"LiteralNumberInteger","value":"1"},
{"type":"Punctuation","value":";"},
{"type":"Text","value":"\n"},
{"type":"TextWhitespace","value":" "},
Expand Down Expand Up @@ -1485,7 +1484,7 @@
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":":="},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumberHex","value":"66"},
{"type":"LiteralNumberInteger","value":"66"},
{"type":"Punctuation","value":";"},
{"type":"Text","value":"\n"},
{"type":"TextWhitespace","value":" "},
Expand All @@ -1505,31 +1504,30 @@
{"type":"Operator","value":"(("},
{"type":"Text","value":"Round"},
{"type":"Operator","value":"("},
{"type":"LiteralNumberHex","value":"1"},
{"type":"LiteralNumberInteger","value":"1"},
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":"+"},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumberHex","value":"2"},
{"type":"LiteralNumberInteger","value":"2"},
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":"-"},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumberHex","value":"0"},
{"type":"LiteralNumberFloat","value":".45"},
{"type":"LiteralNumberFloat","value":"0.45"},
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":"*"},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumberHex","value":"7"},
{"type":"LiteralNumberInteger","value":"7"},
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":"/"},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumberHex","value":"10"},
{"type":"LiteralNumberInteger","value":"10"},
{"type":"Operator","value":")"},
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":"\u003e"},
{"type":"TextWhitespace","value":" "},
{"type":"Text","value":"Ord"},
{"type":"Operator","value":"(#"},
{"type":"LiteralNumberHex","value":"10"},
{"type":"LiteralNumberInteger","value":"10"},
{"type":"Operator","value":")"},
{"type":"Punctuation","value":"."},
{"type":"Text","value":"ToExtended"},
Expand Down Expand Up @@ -1564,7 +1562,7 @@
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":"\u003c\u003e"},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumberHex","value":"13"},
{"type":"LiteralNumberInteger","value":"13"},
{"type":"Punctuation","value":";"},
{"type":"Text","value":"\n"},
{"type":"TextWhitespace","value":" "},
Expand Down Expand Up @@ -1598,11 +1596,11 @@
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":":="},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumberHex","value":"1"},
{"type":"LiteralNumberInteger","value":"1"},
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":"="},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumberHex","value":"2"},
{"type":"LiteralNumberInteger","value":"2"},
{"type":"Punctuation","value":";"},
{"type":"Text","value":"\n"},
{"type":"TextWhitespace","value":" "},
Expand Down Expand Up @@ -1656,10 +1654,10 @@
{"type":"KeywordReserved","value":"in"},
{"type":"TextWhitespace","value":" "},
{"type":"Punctuation","value":"["},
{"type":"LiteralNumberHex","value":"1"},
{"type":"LiteralNumberInteger","value":"1"},
{"type":"Punctuation","value":","},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumberHex","value":"2"},
{"type":"LiteralNumberInteger","value":"2"},
{"type":"Punctuation","value":"]"},
{"type":"TextWhitespace","value":" "},
{"type":"KeywordReserved","value":"do"},
Expand Down Expand Up @@ -1700,7 +1698,7 @@
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":":="},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumberHex","value":"0"},
{"type":"LiteralNumberInteger","value":"0"},
{"type":"Punctuation","value":";"},
{"type":"Text","value":"\n"},
{"type":"TextWhitespace","value":" "},
Expand All @@ -1715,7 +1713,7 @@
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":":="},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumberHex","value":"9"},
{"type":"LiteralNumberInteger","value":"9"},
{"type":"Punctuation","value":";"},
{"type":"Text","value":"\n"},
{"type":"TextWhitespace","value":" "},
Expand Down Expand Up @@ -1845,7 +1843,7 @@
{"type":"Text","value":"LChar"},
{"type":"Punctuation","value":","},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumberHex","value":"1"},
{"type":"LiteralNumberInteger","value":"1"},
{"type":"Text","value":"\n"},
{"type":"TextWhitespace","value":" "},
{"type":"KeywordReserved","value":"end"},
Expand Down Expand Up @@ -2111,7 +2109,7 @@
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":":="},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumberHex","value":"10"},
{"type":"LiteralNumberInteger","value":"10"},
{"type":"Punctuation","value":";"},
{"type":"Text","value":"\n"},
{"type":"KeywordReserved","value":"end"},
Expand Down Expand Up @@ -2154,7 +2152,7 @@
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":"="},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralNumberHex","value":"0"},
{"type":"LiteralNumberInteger","value":"0"},
{"type":"TextWhitespace","value":" "},
{"type":"KeywordReserved","value":"then"},
{"type":"TextWhitespace","value":" "},
Expand Down