Skip to content

Commit 23c6e36

Browse files
authored
Merge pull request #4248 from masatake/toml--disabling
TOML,Cargo: disable the parsers temporarily
2 parents 64829f4 + 5a450d0 commit 23c6e36

File tree

18 files changed

+57
-6
lines changed

18 files changed

+57
-6
lines changed

.github/workflows/building-with-pegof.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ jobs:
4545
- run: ./ctags --list-features | grep pegof
4646

4747
- run: |
48-
echo "Targets: $(./ctags --list-languages=_packcc | tr '\n' ',')"
49-
- run: make units LANGUAGES="$(./ctags --list-languages=_packcc | tr '\n' ',')"
48+
echo "Targets: $(./ctags --list-languages=_packcc | while read LANG REST; do echo "$LANG"; done | tr '\n' ',')"
49+
- run: make units LANGUAGES="$(./ctags --list-languages=_packcc | while read LANG REST; do echo "$LANG"; done | tr '\n' ',')"
5050
- run: make dist
5151
# See EXTRA_DIST in Makefile.am.
5252
# Currently we add .pego files.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
--languages=-TOML
2+
--languages=+Cargo
3+
24
--map-Cargo=.cargo
35
--sort=no
46
--fields=+lK
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
--languages=+TOML
2+
13
--extras=+g
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
--languages=+TOML
2+
13
--extras=+g
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
--languages=+TOML
2+
13
--extras=+g
24
--sort=no
35
--fields=+lne
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
--languages=+TOML
2+
13
--extras=+g
24
--sort=no
35
--fields=+lne
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Taken from https://github.com/BurntSushi/toml/raw/refs/heads/master/internal/toml-test/tests/invalid/encoding/bad-utf8-at-end.toml
2+
With this input, the TOML parser entered an infinite loop.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
x input.toml /^x = """"""�/;" K
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
packcc
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# There is a 0xda at after the quotes, and no EOL at the end of the file.
2+
#
3+
# This is a bit of an edge case: This indicates there should be two bytes
4+
# (0b1101_1010) but there is no byte to follow because it's the end of the file.
5+
x = """"""Ú

0 commit comments

Comments
 (0)