make pascal filetype compatible with bash
When using bash, the whitespaces before the delimiting identifier `EOF` cause an error as well as a missing `\` before `$`.
This commit is contained in:
parent
c643cd4467
commit
807be115b2
|
@ -181,7 +181,7 @@ evaluate-commands %sh¶
|
|||
|
||||
# numbers (https://www.freepascal.org/docs-html/ref/refse6.html)
|
||||
add-highlighter shared/pascal/$r/decimal regex \b\d+([eE][+-]?\d+)?\b 0:value
|
||||
add-highlighter shared/pascal/$r/hex regex \\$[\da-fA-F]+\b 0:value
|
||||
add-highlighter shared/pascal/$r/hex regex \\\$[\da-fA-F]+\b 0:value
|
||||
add-highlighter shared/pascal/$r/octal regex &[0-7]+\b 0:value
|
||||
add-highlighter shared/pascal/$r/binary regex \%[01]+\b 0:value
|
||||
add-highlighter shared/pascal/$r/char regex '#\d+\b' 0:value
|
||||
|
|
|
@ -96,7 +96,7 @@ hook global BufSetOption filetype=(ocaml|coq) %{
|
|||
}
|
||||
|
||||
hook global BufSetOption filetype=((free|object)?pascal|delphi) %{
|
||||
set-option buffer comment-line '//'
|
||||
set-option buffer comment_line '//'
|
||||
set-option buffer comment_block_begin '{'
|
||||
set-option buffer comment_block_end '}'
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user