mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
scanner: fix silent mode string parsing (#7220)
This commit is contained in:
parent
b952bf2e6b
commit
032ea0f4f8
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user