Skip to content

Commit 7ce2caf

Browse files
authored
Fix lexers check when built with newer Go (#928)
Newer versions of Go emit '\f' rather than "\u000c" for formfeeds. This patch adjusts the expected values for the lexers tests to match. Fixes: #927 See also: golang/go#64346 for the change to Go. Signed-off-by: W. Michael Petullo <mike@flyn.org>
1 parent 506e36f commit 7ce2caf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lexers/testdata/python2/test_complex_file1.expected

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
{"type":"Punctuation","value":"("},
171171
{"type":"Name","value":"translation"},
172172
{"type":"Punctuation","value":"))"},
173-
{"type":"Text","value":"\n\n\n\u000c\n"},
173+
{"type":"Text","value":"\n\n\n\f\n"},
174174
{"type":"CommentSingle","value":"# Base64 encoding/decoding uses binascii"},
175175
{"type":"Text","value":"\n\n"},
176176
{"type":"Keyword","value":"def"},
@@ -417,7 +417,7 @@
417417
{"type":"Punctuation","value":"("},
418418
{"type":"Name","value":"_urlsafe_decode_translation"},
419419
{"type":"Punctuation","value":"))"},
420-
{"type":"Text","value":"\n\n\n\u000c\n"},
420+
{"type":"Text","value":"\n\n\n\f\n"},
421421
{"type":"CommentSingle","value":"# Base32 encoding/decoding must be done in Python"},
422422
{"type":"Text","value":"\n"},
423423
{"type":"Name","value":"_b32alphabet"},
@@ -1458,7 +1458,7 @@
14581458
{"type":"Punctuation","value":"("},
14591459
{"type":"Name","value":"parts"},
14601460
{"type":"Punctuation","value":")"},
1461-
{"type":"Text","value":"\n\n\n\u000c\n"},
1461+
{"type":"Text","value":"\n\n\n\f\n"},
14621462
{"type":"CommentSingle","value":"# RFC 3548, Base 16 Alphabet specifies uppercase, but hexlify() returns"},
14631463
{"type":"Text","value":"\n"},
14641464
{"type":"CommentSingle","value":"# lowercase. The RFC also recommends against accepting input case"},
@@ -1541,7 +1541,7 @@
15411541
{"type":"Punctuation","value":"("},
15421542
{"type":"Name","value":"s"},
15431543
{"type":"Punctuation","value":")"},
1544-
{"type":"Text","value":"\n\n\n\u000c\n"},
1544+
{"type":"Text","value":"\n\n\n\f\n"},
15451545
{"type":"CommentSingle","value":"# Legacy interface. This code could be cleaned up since I don't believe"},
15461546
{"type":"Text","value":"\n"},
15471547
{"type":"CommentSingle","value":"# binascii has any line length limitations. It just doesn't seem worth it"},
@@ -1806,7 +1806,7 @@
18061806
{"type":"Punctuation","value":"("},
18071807
{"type":"Name","value":"s"},
18081808
{"type":"Punctuation","value":")"},
1809-
{"type":"Text","value":"\n\n\n\u000c\n"},
1809+
{"type":"Text","value":"\n\n\n\f\n"},
18101810
{"type":"CommentSingle","value":"# Useable as a script..."},
18111811
{"type":"Text","value":"\n"},
18121812
{"type":"Keyword","value":"def"},

0 commit comments

Comments
 (0)