Skip to content

Commit

Permalink
feat: implemented a parser combinator in Lua
Browse files Browse the repository at this point in the history
  • Loading branch information
lervag committed Nov 23, 2024
1 parent 879f890 commit 4d2547d
Show file tree
Hide file tree
Showing 9 changed files with 1,010 additions and 3 deletions.
6 changes: 3 additions & 3 deletions autoload/vimtex/test.vim
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

function! vimtex#test#finished() abort " {{{1
for l:error in v:errors
let l:match = matchlist(l:error, '\(.*\) line \(\d\+\): \(.*\)')
let l:match = matchlist(l:error, '\(.*\)\( line \(\d\+\)\)\?: \(.*\)')
let l:file = fnamemodify(l:match[1], ':.')
let l:lnum = l:match[2]
let l:msg = l:match[3]
let l:lnum = l:match[3]
let l:msg = l:match[4]

if l:msg =~# 'Expected .*but got'
call s:print_expected_but_got(l:file, l:lnum, l:msg)
Expand Down
Loading

0 comments on commit 4d2547d

Please sign in to comment.