improved tokenizer, added tests

This commit is contained in:
2021-01-18 07:29:38 -09:00
parent b675d8714e
commit cd73181a62
11 changed files with 210 additions and 149 deletions

5
config/testdata/comments-inline.tok vendored Normal file
View File

@ -0,0 +1,5 @@
one #one
"two#three"
# "three"
four
# EOF

View File

@ -1,5 +1,6 @@
# one two three
one two three
#four five six
four five six #seven eight nine
# EOF
# one
one
#two
two
# three
three

6
config/testdata/quotes-multiline.tok vendored Normal file
View File

@ -0,0 +1,6 @@
"one
two" 'three
four'
`five
six`

View File

@ -1,8 +1,3 @@
"one" "two three"
"one" 'two' `three`
"four five"
" #six" "" "seven" "ei" "ght"
"multi
line"
`four` 'five' "six"

1
config/testdata/simple-spaces.tok vendored Normal file
View File

@ -0,0 +1 @@
one two three four five six

View File

@ -1 +0,0 @@
one two three four five six