]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/html.yaml
Add support for skipping and remove need for lookbehind
[micro.git] / runtime / syntax / html.yaml
1 filetype: html
2
3 detect:
4     filename: "\\.htm[l]?$"
5
6 rules:
7     - identifier: "<.*?>"
8     - special: "&[^;[[:space:]]]*;"
9     - statement: "(alt|bgcolor|height|href|label|longdesc|name|onclick|onfocus|onload|onmouseover|size|span|src|style|target|type|value|width)="
10
11     - constant.string:
12         start: "\""
13         end: "\""
14         rules: []
15
16     - default:
17         start: "<script.*?>"
18         end: "</script.*?>"
19         rules:
20             - include: "javascript"
21
22     - default:
23         start: "<style.*?>"
24         end: "</style.*?>"
25         rules:
26             - include: "css"
27