Merge remote-tracking branch 'listentolist/pascal-filetype'

This commit is contained in:
Maxime Coste 2021-07-20 22:40:06 +10:00
commit 9cf79bfd1e
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)
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

View File

@ -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 '}'
}