annotate runtime/syntax/mallard.vim @ 34468:f5d114f7440e

runtime(java): Recognise text blocks (#14128) Commit: https://github.com/vim/vim/commit/b3030b653bbdc08c91138001d1987d804f6ebf46 Author: Aliaksei Budavei <32549825+zzzyxwvut@users.noreply.github.com> Date: Sun Mar 3 17:51:01 2024 +0300 runtime(java): Recognise text blocks (https://github.com/vim/vim/issues/14128) Also, accept as valid the space escape sequence `\s`. Also, consistently use the claimed `javaDebug` prefix for syntax group definitions kept under `g:java_highlight_debug`. Since `javaStringError` is commented out for its generality, let's comment out `javaDebugStringError`, its copy, as well. References: https://openjdk.org/jeps/378 https://docs.oracle.com/javase/specs/jls/se17/html/jls-3.html#jls-3.10.7 Closes #10910. Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sun, 03 Mar 2024 16:00:10 +0100
parents 61bcafd8c648
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4119
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 " Vim syntax file
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2 " Language: Mallard
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 " Maintainer: Jaromir Hradilek <jhradilek@gmail.com>
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 " URL: https://github.com/jhradilek/vim-syntax
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 " Last Change: 11 February 2013
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 " Description: A syntax file for the Mallard markup language according to
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 " Mallard 1.0 DRAFT as of 2013-02-11.
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 if exists("b:current_syntax")
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 finish
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 endif
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 do Syntax xml
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 syn cluster xmlTagHook add=mallardTagName
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 syn spell toplevel
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 syn case match
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 syn keyword mallardTagName app cite cmd code col colgroup comment contained
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 syn keyword mallardTagName credit desc em email example figure contained
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 syn keyword mallardTagName file gui guiseq info input item key contained
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 syn keyword mallardTagName keyseq license link links list listing contained
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 syn keyword mallardTagName media name note output p page quote contained
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 syn keyword mallardTagName revision screen section span steps contained
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 syn keyword mallardTagName subtitle synopsis sys table tbody td contained
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 syn keyword mallardTagName terms tfoot thead title tr tree var contained
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 syn keyword mallardTagName years contained
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28 syn region mallardComment start="<comment\>" end="</comment>"me=e-10 contains=xmlTag,xmlNamespace,xmlTagName,xmlEndTag,xmlRegion,xmlEntity,@Spell keepend
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29 syn region mallardEmphasis start="<em\>" end="</em>"me=e-5 contains=xmlTag,xmlNamespace,xmlTagName,xmlEndTag,xmlRegion,xmlEntity,@Spell keepend
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
30 syn region mallardTitle start="<title\>" end="</title>"me=e-8 contains=xmlTag,xmlNamespace,xmlTagName,xmlEndTag,xmlRegion,xmlEntity,@Spell keepend
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
31
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
32 hi def link mallardComment Comment
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
33 hi def link mallardTagName Statement
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
34 hi def link mallardTitle Title
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
35 hi def mallardEmphasis term=italic cterm=italic gui=italic
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
36
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
37 let b:current_syntax = "mallard"