Mercurial > vim
comparison runtime/syntax/prolog.vim @ 17909:cc953757ed2a
Runtime files update.
Commit: https://github.com/vim/vim/commit/06fe74aef72606ac34c9f494186e52614b8fb59a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 31 16:20:32 2019 +0200
Runtime files update.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 31 Aug 2019 16:30:04 +0200 |
parents | b11ceef7116e |
children | e2e2cc5d0856 |
comparison
equal
deleted
inserted
replaced
17908:d9ada976a4c0 | 17909:cc953757ed2a |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: PROLOG | 2 " Language: PROLOG |
3 " Maintainer: Thomas Koehler <jean-luc@picard.franken.de> | 3 " Maintainer: Anton Kochkov <anton.kochkov@gmail.com> |
4 " Please be aware: I'm often slow to answer email due to a high | 4 " Last Change: 2019 Aug 29 |
5 " non-computer related workload (sometimes 4-8 weeks) | |
6 " Last Change: 2016 September 6 | |
7 " URL: http://gott-gehabt.de/800_wer_wir_sind/thomas/Homepage/Computer/vim/syntax/prolog.vim | |
8 | 5 |
9 " There are two sets of highlighting in here: | 6 " There are two sets of highlighting in here: |
10 " If the "prolog_highlighting_clean" variable exists, it is rather sparse. | 7 " If the "prolog_highlighting_clean" variable exists, it is rather sparse. |
11 " Otherwise you get more highlighting. | 8 " Otherwise you get more highlighting. |
9 " | |
10 " You can also set the "prolog_highlighting_no_keyword" variable. If set, | |
11 " keywords will not be highlighted. | |
12 | 12 |
13 " quit when a syntax file was already loaded | 13 " quit when a syntax file was already loaded |
14 if exists("b:current_syntax") | 14 if exists("b:current_syntax") |
15 finish | 15 finish |
16 endif | 16 endif |
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=+\*/+ |
25 syn match prologComment +%.*+ | 25 syn match prologComment +%.*+ |
26 | 26 |
27 syn keyword prologKeyword module meta_predicate multifile dynamic | 27 if !exists("prolog_highlighting_no_keyword") |
28 syn keyword prologKeyword module meta_predicate multifile dynamic | |
29 endif | |
28 syn match prologCharCode +0'\\\=.+ | 30 syn match prologCharCode +0'\\\=.+ |
29 syn region prologString start=+"+ skip=+\\\\\|\\"+ end=+"+ | 31 syn region prologString start=+"+ skip=+\\\\\|\\"+ end=+"+ |
30 syn region prologAtom start=+'+ skip=+\\\\\|\\'+ end=+'+ | 32 syn region prologAtom start=+'+ skip=+\\\\\|\\'+ end=+'+ |
31 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 |
32 | 34 |
33 if !exists("prolog_highlighting_clean") | 35 if !exists("prolog_highlighting_clean") |
34 | 36 |
35 " some keywords | 37 " some keywords |
36 " some common predicates are also highlighted as keywords | 38 " some common predicates are also highlighted as keywords |
37 " is there a better solution? | 39 " is there a better solution? |
38 syn keyword prologKeyword abolish current_output peek_code | 40 if !exists("prolog_highlighting_no_keyword") |
39 syn keyword prologKeyword append current_predicate put_byte | 41 syn keyword prologKeyword abolish current_output peek_code |
40 syn keyword prologKeyword arg current_prolog_flag put_char | 42 syn keyword prologKeyword append current_predicate put_byte |
41 syn keyword prologKeyword asserta fail put_code | 43 syn keyword prologKeyword arg current_prolog_flag put_char |
42 syn keyword prologKeyword assertz findall read | 44 syn keyword prologKeyword asserta fail put_code |
43 syn keyword prologKeyword at_end_of_stream float read_term | 45 syn keyword prologKeyword assertz findall read |
44 syn keyword prologKeyword atom flush_output repeat | 46 syn keyword prologKeyword at_end_of_stream float read_term |
45 syn keyword prologKeyword atom_chars functor retract | 47 syn keyword prologKeyword atom flush_output repeat |
46 syn keyword prologKeyword atom_codes get_byte set_input | 48 syn keyword prologKeyword atom_chars functor retract |
47 syn keyword prologKeyword atom_concat get_char set_output | 49 syn keyword prologKeyword atom_codes get_byte set_input |
48 syn keyword prologKeyword atom_length get_code set_prolog_flag | 50 syn keyword prologKeyword atom_concat get_char set_output |
49 syn keyword prologKeyword atomic halt set_stream_position | 51 syn keyword prologKeyword atom_length get_code set_prolog_flag |
50 syn keyword prologKeyword bagof integer setof | 52 syn keyword prologKeyword atomic halt set_stream_position |
51 syn keyword prologKeyword call is stream_property | 53 syn keyword prologKeyword bagof integer setof |
52 syn keyword prologKeyword catch nl sub_atom | 54 syn keyword prologKeyword call is stream_property |
53 syn keyword prologKeyword char_code nonvar throw | 55 syn keyword prologKeyword catch nl sub_atom |
54 syn keyword prologKeyword char_conversion number true | 56 syn keyword prologKeyword char_code nonvar throw |
55 syn keyword prologKeyword clause number_chars unify_with_occurs_check | 57 syn keyword prologKeyword char_conversion number true |
56 syn keyword prologKeyword close number_codes var | 58 syn keyword prologKeyword clause number_chars unify_with_occurs_check |
57 syn keyword prologKeyword compound once write | 59 syn keyword prologKeyword close number_codes var |
58 syn keyword prologKeyword copy_term op write_canonical | 60 syn keyword prologKeyword compound once write |
59 syn keyword prologKeyword current_char_conversion open write_term | 61 syn keyword prologKeyword copy_term op write_canonical |
60 syn keyword prologKeyword current_input peek_byte writeq | 62 syn keyword prologKeyword current_char_conversion open write_term |
61 syn keyword prologKeyword current_op peek_char | 63 syn keyword prologKeyword current_input peek_byte writeq |
64 syn keyword prologKeyword current_op peek_char | |
65 endif | |
62 | 66 |
63 syn match prologOperator "=\\=\|=:=\|\\==\|=<\|==\|>=\|\\=\|\\+\|<\|>\|=" | 67 syn match prologOperator "=\\=\|=:=\|\\==\|=<\|==\|>=\|\\=\|\\+\|=\.\.\|<\|>\|=" |
64 syn match prologAsIs "===\|\\===\|<=\|=>" | 68 syn match prologAsIs "===\|\\===\|<=\|=>" |
65 | 69 |
66 syn match prologNumber "\<[0123456789]*\>'\@!" | 70 syn match prologNumber "\<\d*\>'\@!" |
71 syn match prologNumber "\<0[xX]\x*\>'\@!" | |
67 syn match prologCommentError "\*/" | 72 syn match prologCommentError "\*/" |
68 syn match prologSpecialCharacter ";" | 73 syn match prologSpecialCharacter ";" |
69 syn match prologSpecialCharacter "!" | 74 syn match prologSpecialCharacter "!" |
70 syn match prologSpecialCharacter ":-" | 75 syn match prologSpecialCharacter ":-" |
71 syn match prologSpecialCharacter "-->" | 76 syn match prologSpecialCharacter "-->" |