Fix parsing of currently shown signs with Spanish locale (#268)
* Fix parsing of currently shown signs with spanish locale * Add a test for parsing of Spanish signs
This commit is contained in:
parent
a37970facd
commit
23f8e7ddc5
2 changed files with 5 additions and 1 deletions
|
@ -42,7 +42,8 @@ function! ale#sign#ParseSigns(line_list) abort
|
|||
" line=4 id=1 name=ALEErrorSign
|
||||
" строка=1 id=1000001 имя=ALEErrorSign
|
||||
" 行=1 識別子=1000001 名前=ALEWarningSign
|
||||
let l:pattern = '^.*=\d* .*=\(\d\+\) .*=ALE\(Warning\|Error\|Dummy\)Sign'
|
||||
" línea=12 id=1000001 nombre=ALEWarningSign
|
||||
let l:pattern = '^.*=\d*\s\+.*=\(\d\+\)\s\+.*=ALE\(Warning\|Error\|Dummy\)Sign'
|
||||
|
||||
let l:id_list = []
|
||||
|
||||
|
|
|
@ -6,3 +6,6 @@ Execute (Parsing Russian signs should work):
|
|||
|
||||
Execute (Parsing Japanese signs should work):
|
||||
AssertEqual [1000001], ale#sign#ParseSigns([' 行=1 識別子=1000001 名前=ALEWarningSign'])
|
||||
|
||||
Execute (Parsing Spanish signs should work):
|
||||
AssertEqual [1000001], ale#sign#ParseSigns([' línea=12 id=1000001 nombre=ALEWarningSign'])
|
||||
|
|
Reference in a new issue