Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 2bb8d59

Browse files
committed
Luacheck: highlighting patterns for version 0.7.1.
1 parent 30257ef commit 2bb8d59

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

syntax_checkers/lua/luacheck.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ let s:save_cpo = &cpo
1818
set cpo&vim
1919

2020
function! SyntaxCheckers_lua_luacheck_GetHighlightRegex(item)
21+
let term = matchstr(a:item['text'], '\m''\zs\S\+\ze''')
22+
if term != ''
23+
return '\V\<' . escape(term, '\') . '\>''
24+
endif
25+
2126
let term = matchstr(a:item['text'], '\m\(accessing undefined\|setting non-standard global\|' .
2227
\ 'setting non-module global\|unused global\) variable \zs\S\+')
2328
if term == ''

0 commit comments

Comments
 (0)