scanner: fix silent mode string parsing (#7220)

pull/7226/head
Daniel Däschle 2020-12-09 20:09:07 +01:00 committed by GitHub
parent b952bf2e6b
commit 032ea0f4f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

@ -595,3 +595,15 @@ jobs:
with:
name: client wss
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

View File

@ -1020,6 +1020,7 @@ fn (mut s Scanner) ident_string() string {
s.pos++
if s.pos >= s.text.len {
s.error('unfinished string literal')
break
}
c := s.text[s.pos]
prevc := s.text[s.pos - 1]