diff options
| author | amitkummer <49096391+amitkummer@users.noreply.github.com> | 2021-02-06 17:47:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-06 16:47:03 +0100 |
| commit | 5a4af5dc6e4005162ba09c177f29288ebaabd4cc (patch) | |
| tree | 33a5f048dbb25ee672bd1b20fb039cf03eee657d /tests | |
| parent | 8e62673e0420f263e9e8ee141c8a516eaee3d881 (diff) | |
| download | pygments-git-5a4af5dc6e4005162ba09c177f29288ebaabd4cc.tar.gz | |
Fix for lexing J operator ? (#1700)
* Add J lexer tests for operator ?
* Make J lexer match ? as an operator
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/snippets/j/test_deal_operator.txt | 8 | ||||
| -rw-r--r-- | tests/snippets/j/test_deal_operator_fixed_seed.txt | 9 |
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/snippets/j/test_deal_operator.txt b/tests/snippets/j/test_deal_operator.txt new file mode 100644 index 00000000..34253c93 --- /dev/null +++ b/tests/snippets/j/test_deal_operator.txt @@ -0,0 +1,8 @@ +---input--- +3?10 + +---tokens--- +'3' Literal.Number.Integer +'?' Operator +'10' Literal.Number.Integer +'\n' Text diff --git a/tests/snippets/j/test_deal_operator_fixed_seed.txt b/tests/snippets/j/test_deal_operator_fixed_seed.txt new file mode 100644 index 00000000..c291720d --- /dev/null +++ b/tests/snippets/j/test_deal_operator_fixed_seed.txt @@ -0,0 +1,9 @@ +---input--- +3?.10 + +---tokens--- +'3' Literal.Number.Integer +'?' Operator +'.' Operator +'10' Literal.Number.Integer +'\n' Text |
