File tree Expand file tree Collapse file tree 2 files changed +45
-2
lines changed Expand file tree Collapse file tree 2 files changed +45
-2
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ These changes should be for the better and should not be super noticeable but if
61
61
62
62
Grammars:
63
63
64
+ - enh(twig) update keywords list for symfony (#3453 ) [ Matthieu Lempereur] [ ]
64
65
- enh(arcade) updated to ArcGIS Arcade version 1.16 [ John Foster] [ ]
65
66
- enh(php) Left and right-side of double colon [ Wojciech Kania] [ ]
66
67
- enh(php) add PHP constants [ Wojciech Kania] [ ]
Original file line number Diff line number Diff line change @@ -10,26 +10,51 @@ Category: template
10
10
export default function ( hljs ) {
11
11
const regex = hljs . regex ;
12
12
const FUNCTION_NAMES = [
13
+ "absolute_url" ,
14
+ "asset|0" ,
15
+ "asset_version" ,
13
16
"attribute" ,
14
17
"block" ,
15
18
"constant" ,
19
+ "controller|0" ,
16
20
"country_timezones" ,
21
+ "csrf_token" ,
17
22
"cycle" ,
18
23
"date" ,
19
24
"dump" ,
25
+ "expression" ,
26
+ "form|0" ,
27
+ "form_end" ,
28
+ "form_errors" ,
29
+ "form_help" ,
30
+ "form_label" ,
31
+ "form_rest" ,
32
+ "form_row" ,
33
+ "form_start" ,
34
+ "form_widget" ,
20
35
"html_classes" ,
21
36
"include" ,
37
+ "is_granted" ,
38
+ "logout_path" ,
39
+ "logout_url" ,
22
40
"max" ,
23
41
"min" ,
24
42
"parent" ,
43
+ "path|0" ,
25
44
"random" ,
26
45
"range" ,
46
+ "relative_path" ,
47
+ "render" ,
48
+ "render_esi" ,
27
49
"source" ,
28
- "template_from_string"
50
+ "template_from_string" ,
51
+ "url|0"
29
52
] ;
30
53
31
54
const FILTERS = [
32
55
"abs" ,
56
+ "abbr_class" ,
57
+ "abbr_method" ,
33
58
"batch" ,
34
59
"capitalize" ,
35
60
"column" ,
@@ -42,15 +67,23 @@ export default function(hljs) {
42
67
"date_modify" ,
43
68
"default" ,
44
69
"escape" ,
70
+ "file_excerpt" ,
71
+ "file_link" ,
72
+ "file_relative" ,
45
73
"filter" ,
46
74
"first" ,
47
75
"format" ,
76
+ "format_args" ,
77
+ "format_args_as_text" ,
48
78
"format_currency" ,
49
79
"format_date" ,
50
80
"format_datetime" ,
81
+ "format_file" ,
82
+ "format_file_from_text" ,
51
83
"format_number" ,
52
84
"format_time" ,
53
85
"html_to_markdown" ,
86
+ "humanize" ,
54
87
"inky_to_html" ,
55
88
"inline_css" ,
56
89
"join" ,
@@ -80,10 +113,14 @@ export default function(hljs) {
80
113
"striptags" ,
81
114
"timezone_name" ,
82
115
"title" ,
116
+ "trans" ,
117
+ "transchoice" ,
83
118
"trim" ,
84
119
"u|0" ,
85
120
"upper" ,
86
- "url_encode"
121
+ "url_encode" ,
122
+ "yaml_dump" ,
123
+ "yaml_encode"
87
124
] ;
88
125
89
126
let TAG_NAMES = [
@@ -98,13 +135,18 @@ export default function(hljs) {
98
135
"filter" ,
99
136
"flush" ,
100
137
"for" ,
138
+ "form_theme" ,
101
139
"from" ,
102
140
"if" ,
103
141
"import" ,
104
142
"include" ,
105
143
"macro" ,
106
144
"sandbox" ,
107
145
"set" ,
146
+ "stopwatch" ,
147
+ "trans" ,
148
+ "trans_default_domain" ,
149
+ "transchoice" ,
108
150
"use" ,
109
151
"verbatim" ,
110
152
"with"
You can’t perform that action at this time.
0 commit comments