package tm-grammars

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

Source file tm_grammar_angular_let_declaration.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
let lang_id = "angular-let-declaration"
let json = {json|{
  "injectTo": [
    "text.html.derivative",
    "text.html.derivative.ng",
    "source.ts.ng"
  ],
  "injectionSelector": "L:text.html -comment -expression.ng -meta.tag -source.css -source.js",
  "name": "angular-let-declaration",
  "patterns": [
    {
      "include": "#letDeclaration"
    }
  ],
  "repository": {
    "letDeclaration": {
      "begin": "(@let)\\s+([$_[:alpha:]][$_[:alnum:]]*)\\s*(=)?",
      "beginCaptures": {
        "1": {
          "name": "storage.type.ng"
        },
        "2": {
          "name": "variable.other.constant.ng"
        },
        "3": {
          "name": "keyword.operator.assignment.ng"
        }
      },
      "end": "(?<=;)",
      "name": "meta.definition.variable.ng",
      "patterns": [
        {
          "include": "#letInitializer"
        }
      ]
    },
    "letInitializer": {
      "begin": "\\s*",
      "beginCaptures": {
        "0": {
          "name": "keyword.operator.assignment.ng"
        }
      },
      "contentName": "meta.definition.variable.initializer.ng",
      "end": ";",
      "endCaptures": {
        "0": {
          "name": "punctuation.terminator.statement.ng"
        }
      },
      "patterns": [
        {
          "include": "expression.ng"
        }
      ]
    }
  },
  "scopeName": "template.let.ng"
}|json}