Merge remote-tracking branch 'lenormf/fix-ranges-hl'
This commit is contained in:
commit
2bc24d6889
|
@ -16,15 +16,11 @@ def spell %{
|
||||||
while read line; do
|
while read line; do
|
||||||
case $line in
|
case $line in
|
||||||
\&*)
|
\&*)
|
||||||
word=$(printf %s "$line" | cut -d ' ' -f 2)
|
|
||||||
begin=$(printf %s "$line" | cut -d ' ' -f 4 | sed 's/:$//')
|
begin=$(printf %s "$line" | cut -d ' ' -f 4 | sed 's/:$//')
|
||||||
end=$((begin + ${#word}))
|
;&
|
||||||
# echo "echo -debug -- line: $line_num, word: $word, begin: $begin, end: $end"
|
|
||||||
regions="$regions:$line_num.$begin,$line_num.$end|Error"
|
|
||||||
;;
|
|
||||||
'#'*)
|
'#'*)
|
||||||
word=$(printf %s "$line" | cut -d ' ' -f 2)
|
word=$(printf %s "$line" | cut -d ' ' -f 2)
|
||||||
begin=$(printf %s "$line" | cut -d ' ' -f 3)
|
begin=${begin:-$(printf %s "$line" | cut -d ' ' -f 3)}
|
||||||
end=$((begin + ${#word}))
|
end=$((begin + ${#word}))
|
||||||
# echo "echo -debug -- line: $line_num, word: $word, begin: $begin, end: $end"
|
# echo "echo -debug -- line: $line_num, word: $word, begin: $begin, end: $end"
|
||||||
regions="$regions:$line_num.$begin,$line_num.$end|Error"
|
regions="$regions:$line_num.$begin,$line_num.$end|Error"
|
||||||
|
|
|
@ -1024,7 +1024,7 @@ HighlighterAndId create_ranges_highlighter(HighlighterParameters params)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return {"hlranges_" + params[1], make_simple_highlighter(func) };
|
return {"hlranges_" + params[0], make_simple_highlighter(func) };
|
||||||
}
|
}
|
||||||
|
|
||||||
HighlighterAndId create_highlighter_group(HighlighterParameters params)
|
HighlighterAndId create_highlighter_group(HighlighterParameters params)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user