File: test_binary_literal_negative_matches.txt

package info (click to toggle)
pygments 2.18.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,184 kB
  • sloc: python: 103,327; javascript: 238; makefile: 142; sh: 84; lisp: 74
file content (27 lines) | stat: -rw-r--r-- 602 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---input---
// Test text that should **not** be tokenized as binary literals.
0b0N
0b
0bb
0b2

---tokens---
''            Text
'// Test text that should **not** be tokenized as binary literals.' Comment.Single
'\n'          Text.Whitespace

'0b0'         Literal.Number.Bin
'N'           Name.Other
'\n'          Text.Whitespace

'0'           Literal.Number.Float
'b'           Name.Other
'\n'          Text.Whitespace

'0'           Literal.Number.Float
'bb'          Name.Other
'\n'          Text.Whitespace

'0'           Literal.Number.Float
'b2'          Name.Other
'\n'          Text.Whitespace