File: tatsu.YAML-tmLanguage

package info (click to toggle)
python-tatsu 5.13.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 892 kB
  • sloc: python: 10,202; makefile: 54
file content (69 lines) | stat: -rw-r--r-- 1,318 bytes parent folder | download | duplicates (4)
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
60
61
62
63
64
65
66
67
68
69
# [PackageDev] target_format: plist, ext: tmLanguage
name: tatsu
scopeName: source.tatsu
fileTypes: [tatsu]
uuid: D9954069-097B-4361-818D-EF4986D442E7

patterns:
- comment: directive
  name: keyword.other
  match: '@@.*::'

- comment: decorator
  name: keyword.other
  match: '^@.*'

- comment: include directive
  name: keyword.other
  match: '#include\s*::'

- name: comment.line.number-sign.tatsu
  match: '#.*$'

- name: comment.block.tatsu
  begin: ^\(\*
  end: \*\)

- name: meta.tatsu.syntax-rule
  begin: ^\s*(\b(?:\w|\s|[\-_0-9])+\b)\s*=
  beginCaptures:
    '1': {name: entity.name.function}
  end: ;
  patterns:
  - comment: comment blocks
    name: comment.block.tatsu
    begin: ^\(\*
    end: \*\)

  - comment: special characters
    name: support.type
    match: '[~+*%\.]'

  - comment: double-quote-string
    name: string.quoted.double
    begin: '"'
    end: '"'

  - comment: single-quote-string
    name: string.quoted.single
    begin: ''''
    end: ''''

  - comment: regex
    name: string.regexp
    begin: '/'
    end: '/'

  - comment: special regex
    name: string.regexp
    begin: '\?'
    end: '\?'

  - comment: special regex
    name: support.constant
    begin: '`'
    end: '`'

  - comment: non-terminal
    name: variable.other.tatsu.non-terminal
    match: \w(?:\w|[\-_0-9])*\w