improved tokenizer, added tests
This commit is contained in:
5
config/testdata/comments-inline.tok
vendored
Normal file
5
config/testdata/comments-inline.tok
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
one #one
|
||||
"two#three"
|
||||
# "three"
|
||||
four
|
||||
# EOF
|
11
config/testdata/comments.tok
vendored
11
config/testdata/comments.tok
vendored
@ -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
6
config/testdata/quotes-multiline.tok
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
"one
|
||||
two" 'three
|
||||
four'
|
||||
|
||||
`five
|
||||
six`
|
9
config/testdata/quotes.tok
vendored
9
config/testdata/quotes.tok
vendored
@ -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
1
config/testdata/simple-spaces.tok
vendored
Normal file
@ -0,0 +1 @@
|
||||
one two three four five six
|
1
config/testdata/simple.tok
vendored
1
config/testdata/simple.tok
vendored
@ -1 +0,0 @@
|
||||
one two three four five six
|
Reference in New Issue
Block a user