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:
Tilman List 2021-07-17 09:21:47 +02:00
parent c643cd4467
commit 807be115b2
2 changed files with 9 additions and 9 deletions

View File

@ -181,7 +181,7 @@ evaluate-commands %sh¶
# numbers (https://www.freepascal.org/docs-html/ref/refse6.html) # 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/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/octal regex &[0-7]+\b 0:value
add-highlighter shared/pascal/$r/binary regex \%[01]+\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 add-highlighter shared/pascal/$r/char regex '#\d+\b' 0:value

View File

@ -96,7 +96,7 @@ hook global BufSetOption filetype=(ocaml|coq) %{
} }
hook global BufSetOption filetype=((free|object)?pascal|delphi) %{ 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_begin '{'
set-option buffer comment_block_end '}' set-option buffer comment_block_end '}'
} }