Fix escaping in the scheme.kak highlighter awk script
The awk-generated highlighters in scheme.kak need '\\.' to obtain '\.' in the generated kakscript output. Fix the inf/nan rule (which should generate '(?:inf|nan)\.0') to read '(?:inf|nan)\\.0' in the awk.
This commit is contained in:
parent
83fb65aef5
commit
51dab20aef
|
@ -162,7 +162,7 @@ evaluate-commands %sh{ exec awk -f - <<'EOF'
|
||||||
# unprefixed decimals
|
# unprefixed decimals
|
||||||
add_highlighter("(?<![" normal_identifiers "])(\\d+(\\.\\d*)?|\\.\\d+)(?:[esfdlESFDL][-+]?\\d+)?(?![" normal_identifiers "])", "0:value");
|
add_highlighter("(?<![" normal_identifiers "])(\\d+(\\.\\d*)?|\\.\\d+)(?:[esfdlESFDL][-+]?\\d+)?(?![" normal_identifiers "])", "0:value");
|
||||||
# inf and nan
|
# inf and nan
|
||||||
add_highlighter("(?<![" normal_identifiers "])[+-](?:inf|nan)\.0(?![" normal_identifiers "])", "0:value");
|
add_highlighter("(?<![" normal_identifiers "])[+-](?:inf|nan)\\.0(?![" normal_identifiers "])", "0:value");
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user