Benno Schulenberg | c4b344f | 2014-02-23 16:07:44 +0000 | [diff] [blame] | 1 | ## Here is an example for XML files. |
Benno Schulenberg | 5edd041 | 2014-05-14 11:16:40 +0000 | [diff] [blame] | 2 | |
Benno Schulenberg | b60f555 | 2015-06-28 18:15:41 +0000 | [diff] [blame] | 3 | syntax "xml" "\.([jrsx]html?|jnlp|mml|pom|rng|sgml?|svg|w[as]dl|wsdd|xjb|xml|xs(d|lt?)|xul)$" |
Benno Schulenberg | 5edd041 | 2014-05-14 11:16:40 +0000 | [diff] [blame] | 4 | magic "(XML|SGML) (sub)?document text" |
Mike Scalora | 6a2032f | 2016-05-25 22:13:50 +0200 | [diff] [blame] | 5 | comment "<!--|-->" |
Benno Schulenberg | 5edd041 | 2014-05-14 11:16:40 +0000 | [diff] [blame] | 6 | |
Benno Schulenberg | b60f555 | 2015-06-28 18:15:41 +0000 | [diff] [blame] | 7 | # The entire content of the tag: |
Chris Allegretta | deb34f2 | 2008-05-31 21:55:21 +0000 | [diff] [blame] | 8 | color green start="<" end=">" |
Benno Schulenberg | b60f555 | 2015-06-28 18:15:41 +0000 | [diff] [blame] | 9 | |
| 10 | # The start and the end of the tag: |
| 11 | color cyan "<[^> ]+" ">" |
| 12 | |
| 13 | # The strings inside the tag: |
| 14 | color magenta "\"[^"]*\"" |
| 15 | |
| 16 | # Comments: |
Chris Allegretta | deb34f2 | 2008-05-31 21:55:21 +0000 | [diff] [blame] | 17 | color yellow start="<!DOCTYPE" end="[/]?>" |
| 18 | color yellow start="<!--" end="-->" |
Benno Schulenberg | b60f555 | 2015-06-28 18:15:41 +0000 | [diff] [blame] | 19 | |
| 20 | # Escapes: |
Chris Allegretta | deb34f2 | 2008-05-31 21:55:21 +0000 | [diff] [blame] | 21 | color red "&[^;]*;" |