scanner: fix silent mode string parsing (#7220)
parent
b952bf2e6b
commit
032ea0f4f8
|
@ -595,3 +595,15 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: client wss
|
name: client wss
|
||||||
path: ${{github.workspace}}/reports_wss/clients/index.html
|
path: ${{github.workspace}}/reports_wss/clients/index.html
|
||||||
|
|
||||||
|
parser-silent-hello-world:
|
||||||
|
name: Parser silent mode - examples/hello_world.v
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 30
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Build local v
|
||||||
|
run: make -j4
|
||||||
|
- name: Run test-parser
|
||||||
|
run: |
|
||||||
|
./v test-parser examples/hello_world.v
|
||||||
|
|
|
@ -1020,6 +1020,7 @@ fn (mut s Scanner) ident_string() string {
|
||||||
s.pos++
|
s.pos++
|
||||||
if s.pos >= s.text.len {
|
if s.pos >= s.text.len {
|
||||||
s.error('unfinished string literal')
|
s.error('unfinished string literal')
|
||||||
|
break
|
||||||
}
|
}
|
||||||
c := s.text[s.pos]
|
c := s.text[s.pos]
|
||||||
prevc := s.text[s.pos - 1]
|
prevc := s.text[s.pos - 1]
|
||||||
|
|
Loading…
Reference in New Issue