diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:22:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:22:03 +0000 |
commit | ffccd5b2b05243e7976db80f90f453dccfae9886 (patch) | |
tree | 39a43152d27f7390d8f7a6fb276fa6887f87c6e8 /misc/syntax/makefile.syntax | |
parent | Initial commit. (diff) | |
download | mc-ffccd5b2b05243e7976db80f90f453dccfae9886.tar.xz mc-ffccd5b2b05243e7976db80f90f453dccfae9886.zip |
Adding upstream version 3:4.8.30.upstream/3%4.8.30
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | misc/syntax/makefile.syntax | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/misc/syntax/makefile.syntax b/misc/syntax/makefile.syntax new file mode 100644 index 0000000..04d7872 --- /dev/null +++ b/misc/syntax/makefile.syntax @@ -0,0 +1,71 @@ +context default + keyword $$ brightcyan + keyword $(*) yellow + keyword ${*} brightgreen +# GNU Makefiles + keyword whole linestart define magenta + keyword whole linestart endef magenta + keyword whole linestart include magenta + keyword whole linestart ifdef magenta + keyword whole linestart ifndef magenta + keyword whole linestart endif magenta + keyword whole linestart if magenta + keyword whole linestart ifeq magenta + keyword whole linestart ifneq magenta + keyword whole linestart else magenta +# BSD Makefiles + keyword whole linestart .\[\s\t\]elif magenta + keyword whole linestart .\[\s\t\]else magenta + keyword whole linestart .\[\s\t\]endfor magenta + keyword whole linestart .\[\s\t\]endif magenta + keyword whole linestart .\[\s\t\]for magenta + keyword whole linestart .\[\s\t\]if magenta + keyword whole linestart .\[\s\t\]include magenta + keyword whole linestart .\[\s\t\]undef magenta + + keyword linestart \t lightgray red + keyword whole .PHONY white + keyword whole .SUFFIXES white + keyword whole .DEFAULT white + keyword whole .PRECIOUS white + keyword whole .INTERMEDIATE white + keyword whole .SECONDARY white + keyword whole .DELETE_ON_ERROR white + keyword whole .IGNORE white + keyword whole .LOW_RESOLUTION_TIME white + keyword whole .SILENT white + keyword whole .EXPORT_ALL_VARIABLES white + keyword whole .NOTPARALLEL white + keyword whole .NOEXPORT white + keyword = white + keyword : yellow + keyword \\\n yellow +# this handles strange cases like @something@@somethingelse@ properly + keyword whole @+@ brightmagenta black + keyword @+@ brightmagenta black + +# comment +context linestart # \n brown + spellcheck + keyword whole @+@ brightmagenta black + keyword @+@ brightmagenta black + +# right part of an assignment +context exclusive = \n brightcyan + keyword \\\n yellow + keyword $$ brightcyan + keyword $(*) yellow + keyword ${*} brightgreen + keyword linestart \t lightgray red + keyword whole @+@ brightmagenta black + keyword @+@ brightmagenta black + +# shell code +context exclusive linestart \t \n + keyword \\\n yellow + keyword $$ brightcyan + keyword $(*) yellow + keyword ${*} brightgreen + keyword linestart \t lightgray red + keyword whole @+@ brightmagenta black + keyword @+@ brightmagenta black |