From 807be115b2a7d8e7012de0be7cc8cf966394dd22 Mon Sep 17 00:00:00 2001 From: Tilman List Date: Sat, 17 Jul 2021 09:21:47 +0200 Subject: [PATCH] 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 `$`. --- rc/filetype/pascal.kak | 16 ++++++++-------- rc/tools/comment.kak | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/rc/filetype/pascal.kak b/rc/filetype/pascal.kak index 3e5100b5..9d8267a4 100644 --- a/rc/filetype/pascal.kak +++ b/rc/filetype/pascal.kak @@ -54,7 +54,7 @@ evaluate-commands %sh¶ add-highlighter shared/pascal/routine/parameters region -recurse \( \( \) regions add-highlighter shared/pascal/property/parameters region -recurse \[ \[ \] regions - EOF +EOF # Used to highlight "var1, var2, var3, var4 : type" declarations x="(?:$id,\s*)?" @@ -66,7 +66,7 @@ evaluate-commands %sh¶ "(?i)(?:(constref|const|var|out|univ)\s+)?$x$x$x$x$x$id(?:$type)?" \ 1:attribute 2:variable 3:variable 4:variable 5:variable 6:variable 7:variable 8:attribute 9:keyword 10:module 11:type add-highlighter shared/pascal/$r/default default-region group - EOF +EOF done cat <