Mercurial > vim
comparison runtime/syntax/prolog.vim @ 23573:e2e2cc5d0856
Update runtime files.
Commit: https://github.com/vim/vim/commit/82be4849eed0b8fbee45bc8da99b685ec89af59a
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jan 11 19:40:15 2021 +0100
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 11 Jan 2021 19:45:05 +0100 |
parents | cc953757ed2a |
children |
comparison
equal
deleted
inserted
replaced
23572:b35e568d74e6 | 23573:e2e2cc5d0856 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: PROLOG | 2 " Language: PROLOG |
3 " Maintainer: Anton Kochkov <anton.kochkov@gmail.com> | 3 " Maintainer: Anton Kochkov <anton.kochkov@gmail.com> |
4 " Last Change: 2019 Aug 29 | 4 " Last Change: 2021 Jan 05 |
5 | 5 |
6 " There are two sets of highlighting in here: | 6 " There are two sets of highlighting in here: |
7 " If the "prolog_highlighting_clean" variable exists, it is rather sparse. | 7 " If the "prolog_highlighting_clean" variable exists, it is rather sparse. |
8 " Otherwise you get more highlighting. | 8 " Otherwise you get more highlighting. |
9 " | 9 " |
19 syn case match | 19 syn case match |
20 | 20 |
21 " Very simple highlighting for comments, clause heads and | 21 " Very simple highlighting for comments, clause heads and |
22 " character codes. It respects prolog strings and atoms. | 22 " character codes. It respects prolog strings and atoms. |
23 | 23 |
24 syn region prologCComment start=+/\*+ end=+\*/+ | 24 syn region prologCComment start=+/\*+ end=+\*/+ contains=@Spell |
25 syn match prologComment +%.*+ | 25 syn match prologComment +%.*+ contains=@Spell |
26 | 26 |
27 if !exists("prolog_highlighting_no_keyword") | 27 if !exists("prolog_highlighting_no_keyword") |
28 syn keyword prologKeyword module meta_predicate multifile dynamic | 28 syn keyword prologKeyword module meta_predicate multifile dynamic |
29 endif | 29 endif |
30 syn match prologCharCode +0'\\\=.+ | 30 syn match prologCharCode +0'\\\=.+ |
31 syn region prologString start=+"+ skip=+\\\\\|\\"+ end=+"+ | 31 syn region prologString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell |
32 syn region prologAtom start=+'+ skip=+\\\\\|\\'+ end=+'+ | 32 syn region prologAtom start=+'+ skip=+\\\\\|\\'+ end=+'+ |
33 syn region prologClause matchgroup=prologClauseHead start=+^\s*[a-z]\w*+ matchgroup=Normal end=+\.\s\|\.$+ contains=ALLBUT,prologClause | 33 syn region prologClause matchgroup=prologClauseHead start=+^\s*[a-z]\w*+ matchgroup=Normal end=+\.\s\|\.$+ contains=ALLBUT,prologClause contains=@NoSpell |
34 | 34 |
35 if !exists("prolog_highlighting_clean") | 35 if !exists("prolog_highlighting_clean") |
36 | 36 |
37 " some keywords | 37 " some keywords |
38 " some common predicates are also highlighted as keywords | 38 " some common predicates are also highlighted as keywords |