package tm-grammars

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file tm_grammar_html_derivative.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
let lang_id = "html-derivative"
let json = {json|{
  "displayName": "HTML (Derivative)",
  "injections": {
    "R:text.html - (comment.block, text.html meta.embedded, meta.tag.*.*.html, meta.tag.*.*.*.html, meta.tag.*.*.*.*.html)": {
      "patterns": [
        {
          "match": "<",
          "name": "invalid.illegal.bad-angle-bracket.html"
        }
      ]
    }
  },
  "name": "html-derivative",
  "patterns": [
    {
      "include": "text.html.basic#core-minus-invalid"
    },
    {
      "begin": "(</?)(\\w[^<>\\s]*)(?<!/)",
      "beginCaptures": {
        "1": {
          "name": "punctuation.definition.tag.begin.html"
        },
        "2": {
          "name": "entity.name.tag.html"
        }
      },
      "end": "((?: ?/)?>)",
      "endCaptures": {
        "1": {
          "name": "punctuation.definition.tag.end.html"
        }
      },
      "name": "meta.tag.other.unrecognized.html.derivative",
      "patterns": [
        {
          "include": "text.html.basic#attribute"
        }
      ]
    }
  ],
  "scopeName": "text.html.derivative"
}|json}