ultraviolet 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +5 -0
- data/Manifest.txt +216 -0
- data/README.txt +52 -0
- data/Rakefile +51 -0
- data/bin/theme2render +104 -0
- data/bin/uv +162 -0
- data/lib/uv.rb +84 -0
- data/lib/uv/html_processor.rb +89 -0
- data/render/old/txt2tags.render +131 -0
- data/render/xhtml/active4d.render +105 -0
- data/render/xhtml/all_hallows_eve.render +69 -0
- data/render/xhtml/amy.render +144 -0
- data/render/xhtml/blackboard.render +84 -0
- data/render/xhtml/brilliance_black.render +575 -0
- data/render/xhtml/brilliance_dull.render +534 -0
- data/render/xhtml/cobalt.render +135 -0
- data/render/xhtml/dawn.render +99 -0
- data/render/xhtml/eiffel.render +105 -0
- data/render/xhtml/espresso_libre.render +96 -0
- data/render/xhtml/files/css/active4d.css +114 -0
- data/render/xhtml/files/css/all_hallows_eve.css +72 -0
- data/render/xhtml/files/css/amy.css +144 -0
- data/render/xhtml/files/css/blackboard.css +88 -0
- data/render/xhtml/files/css/brilliance_black.css +632 -0
- data/render/xhtml/files/css/brilliance_dull.css +579 -0
- data/render/xhtml/files/css/cobalt.css +149 -0
- data/render/xhtml/files/css/dawn.css +121 -0
- data/render/xhtml/files/css/eiffel.css +121 -0
- data/render/xhtml/files/css/espresso_libre.css +109 -0
- data/render/xhtml/files/css/idle.css +62 -0
- data/render/xhtml/files/css/iplastic.css +80 -0
- data/render/xhtml/files/css/lazy.css +73 -0
- data/render/xhtml/files/css/mac_classic.css +123 -0
- data/render/xhtml/files/css/magicwb_amiga.css +101 -0
- data/render/xhtml/files/css/pastels_on_dark.css +188 -0
- data/render/xhtml/files/css/slush_poppies.css +85 -0
- data/render/xhtml/files/css/spacecadet.css +51 -0
- data/render/xhtml/files/css/sunburst.css +180 -0
- data/render/xhtml/files/css/twilight.css +137 -0
- data/render/xhtml/files/css/zenburnesque.css +88 -0
- data/render/xhtml/idle.render +66 -0
- data/render/xhtml/iplastic.render +72 -0
- data/render/xhtml/lazy.render +69 -0
- data/render/xhtml/mac_classic.render +108 -0
- data/render/xhtml/magicwb_amiga.render +90 -0
- data/render/xhtml/pastels_on_dark.render +177 -0
- data/render/xhtml/slush_poppies.render +96 -0
- data/render/xhtml/spacecadet.render +54 -0
- data/render/xhtml/sunburst.render +159 -0
- data/render/xhtml/twilight.render +126 -0
- data/render/xhtml/zenburnesque.render +99 -0
- data/syntax/actionscript.syntax +97 -0
- data/syntax/active4d.syntax +276 -0
- data/syntax/active4d_html.syntax +311 -0
- data/syntax/active4d_ini.syntax +50 -0
- data/syntax/active4d_library.syntax +21 -0
- data/syntax/ada.syntax +33 -0
- data/syntax/antlr.syntax +128 -0
- data/syntax/apache.syntax +176 -0
- data/syntax/applescript.syntax +384 -0
- data/syntax/asp.syntax +70 -0
- data/syntax/asp_vb.net.syntax +129 -0
- data/syntax/bibtex.syntax +151 -0
- data/syntax/blog_html.syntax +41 -0
- data/syntax/blog_markdown.syntax +42 -0
- data/syntax/blog_text.syntax +27 -0
- data/syntax/blog_textile.syntax +27 -0
- data/syntax/buggy/nemerle.yaml +74 -0
- data/syntax/build.syntax +53 -0
- data/syntax/bulletin_board.syntax +287 -0
- data/syntax/c++.syntax +109 -0
- data/syntax/c.syntax +326 -0
- data/syntax/cake.syntax +55 -0
- data/syntax/camlp4.syntax +36 -0
- data/syntax/coldfusion.syntax +118 -0
- data/syntax/context_free.syntax +176 -0
- data/syntax/cs.syntax +59 -0
- data/syntax/css.syntax +190 -0
- data/syntax/css_experimental.syntax +1925 -0
- data/syntax/csv.syntax +68 -0
- data/syntax/d.syntax +138 -0
- data/syntax/diff.syntax +81 -0
- data/syntax/dokuwiki.syntax +204 -0
- data/syntax/dot.syntax +47 -0
- data/syntax/doxygen.syntax +43 -0
- data/syntax/dylan.syntax +62 -0
- data/syntax/eiffel.syntax +78 -0
- data/syntax/erlang.syntax +922 -0
- data/syntax/f-script.syntax +80 -0
- data/syntax/fortran.syntax +141 -0
- data/syntax/fxscript.syntax +142 -0
- data/syntax/greasemonkey.syntax +34 -0
- data/syntax/gri.syntax +83 -0
- data/syntax/groovy.syntax +189 -0
- data/syntax/gtd2_text.syntax +31 -0
- data/syntax/gtdalt.syntax +143 -0
- data/syntax/haml.syntax +88 -0
- data/syntax/haskell.syntax +88 -0
- data/syntax/html-asp.syntax +27 -0
- data/syntax/html.syntax +362 -0
- data/syntax/html_django.syntax +36 -0
- data/syntax/html_for_asp.net.syntax +424 -0
- data/syntax/html_mason.syntax +119 -0
- data/syntax/html_rails.syntax +40 -0
- data/syntax/html_tcl.syntax +26 -0
- data/syntax/icalendar.syntax +32 -0
- data/syntax/inform.syntax +48 -0
- data/syntax/ini.syntax +54 -0
- data/syntax/installer_distribution_script.syntax +77 -0
- data/syntax/io.syntax +81 -0
- data/syntax/java.syntax +211 -0
- data/syntax/javaproperties.syntax +20 -0
- data/syntax/javascript.syntax +255 -0
- data/syntax/javascript_+_prototype.syntax +72 -0
- data/syntax/javascript_+_prototype_bracketed.syntax +140 -0
- data/syntax/jquery_javascript.syntax +114 -0
- data/syntax/json.syntax +136 -0
- data/syntax/languagedefinition.syntax +697 -0
- data/syntax/latex.syntax +566 -0
- data/syntax/latex_beamer.syntax +41 -0
- data/syntax/latex_log.syntax +50 -0
- data/syntax/latex_memoir.syntax +64 -0
- data/syntax/lexflex.syntax +219 -0
- data/syntax/lighttpd.syntax +54 -0
- data/syntax/lilypond.syntax +492 -0
- data/syntax/lisp.syntax +61 -0
- data/syntax/literate_haskell.syntax +24 -0
- data/syntax/logo.syntax +29 -0
- data/syntax/logtalk.syntax +152 -0
- data/syntax/lua.syntax +86 -0
- data/syntax/m.syntax +142 -0
- data/syntax/macports_portfile.syntax +143 -0
- data/syntax/mail.syntax +118 -0
- data/syntax/makefile.syntax +35 -0
- data/syntax/man.syntax +17 -0
- data/syntax/markdown.syntax +543 -0
- data/syntax/mediawiki.syntax +567 -0
- data/syntax/mel.syntax +92 -0
- data/syntax/mips.syntax +66 -0
- data/syntax/mod_perl.syntax +50 -0
- data/syntax/modula-3.syntax +47 -0
- data/syntax/moinmoin.syntax +189 -0
- data/syntax/mootools.syntax +572 -0
- data/syntax/movable_type.syntax +162 -0
- data/syntax/multimarkdown.syntax +39 -0
- data/syntax/objective-c++.syntax +18 -0
- data/syntax/objective-c.syntax +226 -0
- data/syntax/ocaml.syntax +764 -0
- data/syntax/ocamllex.syntax +167 -0
- data/syntax/ocamlyacc.syntax +184 -0
- data/syntax/old/YAML.yaml +160 -0
- data/syntax/old/txt2tags.yaml +139 -0
- data/syntax/opengl.syntax +14 -0
- data/syntax/pascal.syntax +77 -0
- data/syntax/perl.syntax +1075 -0
- data/syntax/php.syntax +678 -0
- data/syntax/plain_text.syntax +32 -0
- data/syntax/postscript.syntax +114 -0
- data/syntax/processing.syntax +106 -0
- data/syntax/prolog.syntax +40 -0
- data/syntax/property_list.syntax +645 -0
- data/syntax/python.syntax +865 -0
- data/syntax/python_django.syntax +21 -0
- data/syntax/qmake_project.syntax +114 -0
- data/syntax/qt_c++.syntax +26 -0
- data/syntax/quake3_config.syntax +32 -0
- data/syntax/r.syntax +81 -0
- data/syntax/r_console.syntax +16 -0
- data/syntax/ragel.syntax +201 -0
- data/syntax/rd_r_documentation.syntax +91 -0
- data/syntax/regexp.syntax +50 -0
- data/syntax/regular_expressions_oniguruma.syntax +107 -0
- data/syntax/regular_expressions_python.syntax +109 -0
- data/syntax/release_notes.syntax +37 -0
- data/syntax/remind.syntax +253 -0
- data/syntax/restructuredtext.syntax +250 -0
- data/syntax/rez.syntax +80 -0
- data/syntax/ruby.syntax +1035 -0
- data/syntax/ruby_experimental.syntax +145 -0
- data/syntax/ruby_on_rails.syntax +88 -0
- data/syntax/s5.syntax +69 -0
- data/syntax/scheme.syntax +347 -0
- data/syntax/scilab.syntax +41 -0
- data/syntax/setext.syntax +147 -0
- data/syntax/shell-unix-generic.syntax +384 -0
- data/syntax/slate.syntax +149 -0
- data/syntax/smarty.syntax +63 -0
- data/syntax/sql.syntax +237 -0
- data/syntax/sql_rails.syntax +18 -0
- data/syntax/ssh-config.syntax +33 -0
- data/syntax/standard_ml.syntax +45 -0
- data/syntax/strings_file.syntax +39 -0
- data/syntax/subversion_commit_message.syntax +36 -0
- data/syntax/sweave.syntax +84 -0
- data/syntax/swig.syntax +57 -0
- data/syntax/tcl.syntax +152 -0
- data/syntax/template_toolkit.syntax +121 -0
- data/syntax/tex.syntax +86 -0
- data/syntax/tex_math.syntax +49 -0
- data/syntax/textile.syntax +215 -0
- data/syntax/tsv.syntax +50 -0
- data/syntax/twiki.syntax +241 -0
- data/syntax/txt2tags.syntax +79 -0
- data/syntax/vectorscript.syntax +57 -0
- data/syntax/xhtml_1.0.syntax +4027 -0
- data/syntax/xml.syntax +179 -0
- data/syntax/xml_strict.syntax +92 -0
- data/syntax/xsl.syntax +60 -0
- data/syntax/yaml.syntax +160 -0
- data/syntax/yui_javascript.syntax +176 -0
- data/test/test_uv.rb +0 -0
- metadata +270 -0
data/syntax/php.syntax
ADDED
|
@@ -0,0 +1,678 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: PHP
|
|
3
|
+
firstLineMatch: ^#!.*php[0-9]{0,1}\b
|
|
4
|
+
scopeName: source.php
|
|
5
|
+
repository:
|
|
6
|
+
language_constant:
|
|
7
|
+
name: constant.language.php
|
|
8
|
+
match: (?i)\b(TRUE|FALSE|NULL|__(FILE|FUNCTION|CLASS|METHOD|LINE)__|ON|OFF|YES|NO|NL|BR|TAB)\b
|
|
9
|
+
string-double-quoted:
|
|
10
|
+
name: string.quoted.double.php
|
|
11
|
+
endCaptures:
|
|
12
|
+
"0":
|
|
13
|
+
name: punctuation.definition.string.end.php
|
|
14
|
+
begin: "\""
|
|
15
|
+
beginCaptures:
|
|
16
|
+
"0":
|
|
17
|
+
name: punctuation.definition.string.begin.php
|
|
18
|
+
end: "\""
|
|
19
|
+
patterns:
|
|
20
|
+
- name: constant.character.escape.php
|
|
21
|
+
match: \\.
|
|
22
|
+
- include: "#var_complex_string_heredoc"
|
|
23
|
+
language:
|
|
24
|
+
patterns:
|
|
25
|
+
- name: meta.scope.heredoc
|
|
26
|
+
endCaptures:
|
|
27
|
+
"1":
|
|
28
|
+
name: keyword.operator.heredoc.php
|
|
29
|
+
"2":
|
|
30
|
+
name: punctuation.definition.string.php
|
|
31
|
+
begin: (<<<)(HTML)
|
|
32
|
+
contentName: text.html.basic.embedded
|
|
33
|
+
beginCaptures:
|
|
34
|
+
"1":
|
|
35
|
+
name: punctuation.definition.string.php
|
|
36
|
+
"2":
|
|
37
|
+
name: keyword.operator.heredoc.php
|
|
38
|
+
end: ^(HTML)(;?)$
|
|
39
|
+
patterns:
|
|
40
|
+
- include: text.html.basic
|
|
41
|
+
- include: "#var_global"
|
|
42
|
+
- include: "#var_global_safer"
|
|
43
|
+
- include: "#var_basic"
|
|
44
|
+
- include: "#var_complex_string_heredoc"
|
|
45
|
+
- name: meta.scope.heredoc
|
|
46
|
+
endCaptures:
|
|
47
|
+
"1":
|
|
48
|
+
name: keyword.operator.heredoc.php
|
|
49
|
+
"2":
|
|
50
|
+
name: punctuation.definition.string.php
|
|
51
|
+
begin: ((<<<)XML)
|
|
52
|
+
contentName: text.xml.embedded
|
|
53
|
+
beginCaptures:
|
|
54
|
+
"1":
|
|
55
|
+
name: punctuation.definition.string.php
|
|
56
|
+
"2":
|
|
57
|
+
name: keyword.operator.heredoc.php
|
|
58
|
+
end: ^(XML)(;?)$
|
|
59
|
+
patterns:
|
|
60
|
+
- include: text.xml
|
|
61
|
+
- include: "#var_global"
|
|
62
|
+
- include: "#var_global_safer"
|
|
63
|
+
- include: "#var_basic"
|
|
64
|
+
- include: "#var_complex_string_heredoc"
|
|
65
|
+
- name: meta.scope.heredoc
|
|
66
|
+
endCaptures:
|
|
67
|
+
"1":
|
|
68
|
+
name: keyword.operator.heredoc.php
|
|
69
|
+
"2":
|
|
70
|
+
name: punctuation.definition.string.php
|
|
71
|
+
begin: ((<<<)SQL)
|
|
72
|
+
contentName: source.sql.embedded
|
|
73
|
+
beginCaptures:
|
|
74
|
+
"1":
|
|
75
|
+
name: punctuation.definition.string.php
|
|
76
|
+
"2":
|
|
77
|
+
name: keyword.operator.heredoc.php
|
|
78
|
+
end: ^(SQL)(;?)$
|
|
79
|
+
patterns:
|
|
80
|
+
- include: source.sql
|
|
81
|
+
- include: "#var_global"
|
|
82
|
+
- include: "#var_global_safer"
|
|
83
|
+
- include: "#var_basic"
|
|
84
|
+
- include: "#var_complex_string_heredoc"
|
|
85
|
+
- name: comment.block.documentation.phpdoc.php
|
|
86
|
+
captures:
|
|
87
|
+
"0":
|
|
88
|
+
name: punctuation.definition.comment.php
|
|
89
|
+
begin: /\*\*\s*$
|
|
90
|
+
end: \*/
|
|
91
|
+
patterns:
|
|
92
|
+
- include: "#php_doc"
|
|
93
|
+
comment: This now only highlights a docblock if the first line contains only /** - this is to stop highlighting everything as invalid when people do comment banners with /******** ...
|
|
94
|
+
- name: comment.block.php
|
|
95
|
+
captures:
|
|
96
|
+
"0":
|
|
97
|
+
name: punctuation.definition.comment.php
|
|
98
|
+
begin: /\*
|
|
99
|
+
end: \*/
|
|
100
|
+
- name: comment.line.double-slash.php
|
|
101
|
+
captures:
|
|
102
|
+
"1":
|
|
103
|
+
name: punctuation.definition.comment.php
|
|
104
|
+
match: (//).*$\n?
|
|
105
|
+
- name: comment.line.number-sign.php
|
|
106
|
+
captures:
|
|
107
|
+
"1":
|
|
108
|
+
name: punctuation.definition.comment.php
|
|
109
|
+
match: (#).*$\n?
|
|
110
|
+
- name: meta.interface.php
|
|
111
|
+
begin: ^\s*(interface)\s+([a-zA-Z0-9_]+)\s*(extends)?\s*
|
|
112
|
+
beginCaptures:
|
|
113
|
+
"1":
|
|
114
|
+
name: storage.type.interface.php
|
|
115
|
+
"2":
|
|
116
|
+
name: entity.name.type.interface.php
|
|
117
|
+
"3":
|
|
118
|
+
name: storage.modifier.extends.php
|
|
119
|
+
end: $
|
|
120
|
+
patterns:
|
|
121
|
+
- name: entity.other.inherited-class.php
|
|
122
|
+
match: "[a-zA-Z0-9_]+"
|
|
123
|
+
- name: meta.class.php
|
|
124
|
+
begin: ^\s*(abstract)?\s*(class)\s+([a-zA-Z0-9_]+)\s*
|
|
125
|
+
beginCaptures:
|
|
126
|
+
"1":
|
|
127
|
+
name: storage.modifier.abstract.php
|
|
128
|
+
"2":
|
|
129
|
+
name: storage.type.class.php
|
|
130
|
+
"3":
|
|
131
|
+
name: entity.name.type.class.php
|
|
132
|
+
end: $
|
|
133
|
+
patterns:
|
|
134
|
+
- captures:
|
|
135
|
+
"1":
|
|
136
|
+
name: storage.modifier.extends.php
|
|
137
|
+
"2":
|
|
138
|
+
name: entity.other.inherited-class.php
|
|
139
|
+
match: (extends)\s+([a-zA-Z0-9_]+)\s*
|
|
140
|
+
- begin: (implements)\s+([a-zA-Z0-9_]+)\s*
|
|
141
|
+
beginCaptures:
|
|
142
|
+
"1":
|
|
143
|
+
name: storage.modifier.implements.php
|
|
144
|
+
"2":
|
|
145
|
+
name: support.class.implements.php
|
|
146
|
+
end: (?=\s*\bextends)|$
|
|
147
|
+
patterns:
|
|
148
|
+
- captures:
|
|
149
|
+
"1":
|
|
150
|
+
name: support.class.implements.php
|
|
151
|
+
match: ,\s*([a-zA-Z0-9_]+)\s*
|
|
152
|
+
- name: keyword.control.php
|
|
153
|
+
match: \b(break|c(ase|ontinue)|d(e(clare|fault)|ie|o)|e(lse(if)?|nd(declare|for(each)?|if|switch|while)|xit)|for(each)?|if|return|switch|use|while)\b
|
|
154
|
+
- name: meta.include.php
|
|
155
|
+
captures:
|
|
156
|
+
"1":
|
|
157
|
+
name: keyword.control.import.include.php
|
|
158
|
+
begin: \b((require|include)(_once)?)\b
|
|
159
|
+
end: ;
|
|
160
|
+
patterns:
|
|
161
|
+
- include: "#language"
|
|
162
|
+
- name: keyword.control.exception.php
|
|
163
|
+
match: \b(catch|try|throw|exception)|([a-zA-Z_]*Exception)\b
|
|
164
|
+
- name: meta.function.php
|
|
165
|
+
endCaptures:
|
|
166
|
+
"1":
|
|
167
|
+
name: punctuation.definition.parameters.end.php
|
|
168
|
+
begin: (?:^\s*)((?:(?:final|abstract|public|private|protected|static)\s+)*)(function)(?:\s+|(\s*&\s*))([a-zA-Z0-9_]+)\s*(\()
|
|
169
|
+
beginCaptures:
|
|
170
|
+
"1":
|
|
171
|
+
name: storage.modifier.php
|
|
172
|
+
"2":
|
|
173
|
+
name: storage.type.function.php
|
|
174
|
+
"3":
|
|
175
|
+
name: storage.modifier.reference.php
|
|
176
|
+
"4":
|
|
177
|
+
name: entity.name.function.php
|
|
178
|
+
"5":
|
|
179
|
+
name: punctuation.definition.parameters.begin.php
|
|
180
|
+
end: \)
|
|
181
|
+
patterns:
|
|
182
|
+
- include: "#string-double-quoted"
|
|
183
|
+
- include: "#string-single-quoted"
|
|
184
|
+
- include: "#string-backtick"
|
|
185
|
+
- include: "#var_global"
|
|
186
|
+
- include: "#var_global_safer"
|
|
187
|
+
- include: "#var_basic"
|
|
188
|
+
- include: "#language_constant"
|
|
189
|
+
- name: meta.class.php
|
|
190
|
+
captures:
|
|
191
|
+
"1":
|
|
192
|
+
name: storage.modifier.abstract.php
|
|
193
|
+
"2":
|
|
194
|
+
name: storage.modifier.class-or-interface.php
|
|
195
|
+
"3":
|
|
196
|
+
name: entity.name.type.class.php
|
|
197
|
+
"4":
|
|
198
|
+
name: entity.other.inherited-class.php
|
|
199
|
+
match: (?:^\s*)(abstract)?\s*(class|interface)\s+([a-zA-Z0-9_]+)\s*(extends\s+([a-zA-Z0-9_]+))?
|
|
200
|
+
- name: storage.type.php
|
|
201
|
+
match: \b(real|double|float|int(eger)?|bool(ean)?|string|class|clone|var|function|interface|new|parent|self|__(autoload|c(all|lone|onstruct)|destruct|get|set|sleep|toString|wakeup))\b
|
|
202
|
+
- name: storage.modifier.php
|
|
203
|
+
match: \b(global|abstract|const|extends|implements|final|p(r(ivate|otected)|ublic)|static)\b
|
|
204
|
+
- name: keyword.operator.php
|
|
205
|
+
match: "::|->"
|
|
206
|
+
- name: support.function.builtin_functions.php
|
|
207
|
+
match: (?i)\b(eval|s(tr(nc(asecmp|mp)|c(asecmp|mp)|len)|et_e(rror_handler|xception_handler))|c(lass_exists|reate_function)|trigger_error|i(s_(subclass_of|a)|nterface_exists)|zend_version|de(fine(d)?|bug_(print_backtrace|backtrace))|property_exists|e(ach|rror_reporting|xtension_loaded)|func(tion_exists|_(num_args|get_arg(s)?))|leak|restore_e(rror_handler|xception_handler)|get_(class(_(vars|methods))?|included_files|object_vars|de(clared_(classes|interfaces)|fined_(constants|vars|functions))|parent_class|extension_funcs|loaded_extensions|resource_type)|method_exists)\b
|
|
208
|
+
- name: support.function.bcmath.php
|
|
209
|
+
match: (?i)\bbc(s(cale|ub|qrt)|comp|div|pow(mod)?|add|m(od|ul))\b
|
|
210
|
+
- name: support.function.bz2.php
|
|
211
|
+
match: (?i)\bbz(compress|open|decompress|err(str|no|or)|read)\b
|
|
212
|
+
- name: support.function.cal_unix.php
|
|
213
|
+
match: (?i)\b(unixtojd|jdtounix)\b
|
|
214
|
+
- name: support.function.calendar.php
|
|
215
|
+
match: (?i)\b(cal_(to_jd|info|days_in_month|from_jd)|j(d(to(j(ulian|ewish)|french|gregorian)|dayofweek|monthname)|uliantojd|ewishtojd)|frenchtojd|gregoriantojd)\b
|
|
216
|
+
- name: support.function.easter.php
|
|
217
|
+
match: (?i)\beaster_da(ys|te)\b
|
|
218
|
+
- name: support.function.com_com.php
|
|
219
|
+
match: (?i)\bcom_(create_guid|print_typeinfo|event_sink|load_typelib|get_active_object|message_pump)\b
|
|
220
|
+
- name: support.function.com_variant.php
|
|
221
|
+
match: (?i)\bvariant_(s(ub|et(_type)?)|n(ot|eg)|c(a(st|t)|mp)|i(nt|div|mp)|or|d(iv|ate_(to_timestamp|from_timestamp))|pow|eqv|fix|a(nd|dd|bs)|round|get_type|xor|m(od|ul))\b
|
|
222
|
+
- name: support.function.ctype.php
|
|
223
|
+
match: (?i)\bctype_(space|cntrl|digit|upper|p(unct|rint)|lower|al(num|pha)|graph|xdigit)\b
|
|
224
|
+
- name: support.function.interface.php
|
|
225
|
+
match: (?i)\bcurl_(setopt(_array)?|c(opy_handle|lose)|init|e(rr(no|or)|xec)|version|getinfo)\b
|
|
226
|
+
- name: support.function.multi.php
|
|
227
|
+
match: (?i)\bcurl_multi_(select|close|in(it|fo_read)|exec|add_handle|remove_handle|getcontent)\b
|
|
228
|
+
- name: support.function.php_date.php
|
|
229
|
+
match: (?i)\b(str(totime|ftime)|checkdate|time(zone_(name_(from_abbr|get)|transitions_get|identifiers_list|o(pen|ffset_get)|abbreviations_list))?|idate|date(_(sun(set|_info|rise)|create|time(zone_(set|get)|_set)|isodate_set|offset_get|d(efault_timezone_(set|get)|ate_set)|parse|format|modify))?|localtime|g(etdate|m(strftime|date|mktime))|mktime)\b
|
|
230
|
+
- name: support.function.dba.php
|
|
231
|
+
match: (?i)\bdba_(sync|handlers|nextkey|close|insert|op(timize|en)|delete|popen|exists|key_split|f(irstkey|etch)|list|replace)\b
|
|
232
|
+
- name: support.function.dbase.php
|
|
233
|
+
match: (?i)\bdbase_(num(fields|records)|c(lose|reate)|open|delete_record|pack|add_record|replace_record|get_(header_info|record(_with_names)?))\b
|
|
234
|
+
- name: support.function.attr.php
|
|
235
|
+
match: (?i)\bdom_attr_is_id\b
|
|
236
|
+
- name: support.function.characterdata.php
|
|
237
|
+
match: (?i)\bdom_characterdata_(substring_data|insert_data|delete_data|append_data|replace_data)\b
|
|
238
|
+
- name: support.function.document.php
|
|
239
|
+
match: (?i)\bdom_document_(s(chema_validate(_file)?|ave(_html(_file)?|xml)?)|normalize_document|create_(c(omment|datasection)|text_node|document_fragment|processing_instruction|e(ntity_reference|lement(_ns)?)|attribute(_ns)?)|import_node|validate|load(_html(_file)?|xml)?|adopt_node|re(name_node|laxNG_validate_(file|xml))|get_element(s_by_tag_name(_ns)?|_by_id)|xinclude)\b
|
|
240
|
+
- name: support.function.domconfiguration.php
|
|
241
|
+
match: (?i)\bdom_domconfiguration_(set_parameter|can_set_parameter|get_parameter)\b
|
|
242
|
+
- name: support.function.domerrorhandler.php
|
|
243
|
+
match: (?i)\bdom_domerrorhandler_handle_error\b
|
|
244
|
+
- name: support.function.domimplementation.php
|
|
245
|
+
match: (?i)\bdom_domimplementation_(has_feature|create_document(_type)?|get_feature)\b
|
|
246
|
+
- name: support.function.domimplementationlist.php
|
|
247
|
+
match: (?i)\bdom_domimplementationlist_item\b
|
|
248
|
+
- name: support.function.domimplementationsource.php
|
|
249
|
+
match: (?i)\bdom_domimplementationsource_get_domimplementation(s)?\b
|
|
250
|
+
- name: support.function.domstringlist.php
|
|
251
|
+
match: (?i)\bdom_domstringlist_item\b
|
|
252
|
+
- name: support.function.element.php
|
|
253
|
+
match: (?i)\bdom_element_(set_(id_attribute(_n(s|ode))?|attribute(_n(s|ode(_ns)?))?)|has_attribute(_ns)?|remove_attribute(_n(s|ode))?|get_(elements_by_tag_name(_ns)?|attribute(_n(s|ode(_ns)?))?))\b
|
|
254
|
+
- name: support.function.namednodemap.php
|
|
255
|
+
match: (?i)\bdom_namednodemap_(set_named_item(_ns)?|item|remove_named_item(_ns)?|get_named_item(_ns)?)\b
|
|
256
|
+
- name: support.function.namelist.php
|
|
257
|
+
match: (?i)\bdom_namelist_get_name(space_uri)?\b
|
|
258
|
+
- name: support.function.node.php
|
|
259
|
+
match: (?i)\bdom_node_(set_user_data|has_(child_nodes|attributes)|normalize|c(ompare_document_position|lone_node)|i(s_(s(upported|ame_node)|default_namespace|equal_node)|nsert_before)|lookup_(namespace_uri|prefix)|append_child|re(place_child|move_child)|get_(user_data|feature))\b
|
|
260
|
+
- name: support.function.nodelist.php
|
|
261
|
+
match: (?i)\bdom_nodelist_item\b
|
|
262
|
+
- name: support.function.php_dom.php
|
|
263
|
+
match: (?i)\bdom_import_simplexml\b
|
|
264
|
+
- name: support.function.string_extend.php
|
|
265
|
+
match: (?i)\bdom_string_extend_find_offset(16|32)\b
|
|
266
|
+
- name: support.function.text.php
|
|
267
|
+
match: (?i)\bdom_text_(split_text|is_whitespace_in_element_content|replace_whole_text)\b
|
|
268
|
+
- name: support.function.userdatahandler.php
|
|
269
|
+
match: (?i)\bdom_userdatahandler_handle\b
|
|
270
|
+
- name: support.function.xpath.php
|
|
271
|
+
match: (?i)\bdom_xpath_(evaluate|query|register_ns)\b
|
|
272
|
+
- name: support.function.exif.php
|
|
273
|
+
match: (?i)\bexif_(t(humbnail|agname)|imagetype|read_data)\b
|
|
274
|
+
- name: support.function.php_fbsql.php
|
|
275
|
+
match: (?i)\bfbsql_(s(t(op_db|art_db)|e(t_(characterset|transaction|password|lob_mode)|lect_db))|hostname|n(um_(fields|rows)|ext_result)|c(hange_user|o(nnect|mmit)|lo(se|b_size)|reate_(clob|db|blob))|table_name|insert_id|d(ata(_seek|base(_password)?)|rop_db|b_(status|query))|username|p(connect|assword)|err(no|or)|query|f(ield_(seek|name|t(ype|able)|flags|len)|etch_(object|field|lengths|a(ssoc|rray)|row)|ree_result)|warnings|list_(tables|dbs|fields)|a(utocommit|ffected_rows)|r(o(ws_fetched|llback)|e(sult|ad_(clob|blob)))|get_autostart_info|blob_size)\b
|
|
276
|
+
- name: support.function.fdf.php
|
|
277
|
+
match: (?i)\bfdf_(s(et_(s(tatus|ubmit_form_action)|target_frame|o(n_import_javascript|pt)|javascript_action|encoding|v(ersion|alue)|f(ile|lags)|ap)|ave(_string)?)|header|next_field_name|c(lose|reate)|open(_string)?|e(num_values|rr(no|or))|add_(template|doc_javascript)|remove_item|get_(status|opt|encoding|v(ersion|alue)|f(ile|lags)|a(ttachment|p)))\b
|
|
278
|
+
- name: support.function.filter.php
|
|
279
|
+
match: (?i)\bfilter_(has_var|i(nput(_array)?|d)|var(_array)?|list)\b
|
|
280
|
+
- name: support.function.php_ftp.php
|
|
281
|
+
match: (?i)\bftp_(s(sl_connect|ystype|i(te|ze)|et_option)|n(list|b_(continue|put|f(put|get)|get))|c(h(dir|mod)|onnect|dup|lose)|delete|p(ut|wd|asv)|exec|f(put|get)|login|alloc|r(ename|aw(list)?|mdir)|get(_option)?|m(dtm|kdir))\b
|
|
282
|
+
- name: support.function.gd.php
|
|
283
|
+
match: (?i)\b(image(s(y|tring(up)?|et(style|t(hickness|ile)|pixel|brush)|avealpha|x)|c(har(up)?|o(nvolution|py(res(ized|ampled)|merge(gray)?)?|lor(s(total|et|forindex)|closest(hwb|alpha)?|transparent|deallocate|exact(alpha)?|a(t|llocate(alpha)?)|resolve(alpha)?|match))|reate(truecolor|from(string|jpeg|png|wbmp|g(if|d(2(part)?)?)|x(pm|bm)))?)|t(ypes|tf(text|bbox)|ruecolortopalette)|i(struecolor|nterlace)|2wbmp|d(estroy|ashedline)|jpeg|p(s(slantfont|copyfont|text|e(ncodefont|xtendfont)|freefont|loadfont|bbox)|ng|olygon|alettecopy)|ellipse|f(t(text|bbox)|il(ter|l(toborder|ed(polygon|ellipse|arc|rectangle))?)|ont(height|width))|wbmp|l(ine|oadfont|ayereffect)|a(ntialias|lphablending|rc)|r(otate|ectangle)|g(if|d(2)?|ammacorrect)|xbm)|jpeg2wbmp|png2wbmp|gd_info)\b
|
|
284
|
+
- name: support.function.gettext.php
|
|
285
|
+
match: (?i)\b(ngettext|textdomain|d(ngettext|c(ngettext|gettext)|gettext)|gettext|bind(textdomain|_textdomain_codeset))\b
|
|
286
|
+
- name: support.function.gmp.php
|
|
287
|
+
match: (?i)\bgmp_(s(can(1|0)|trval|ign|ub|etbit|qrt(rem)?)|hamdist|ne(g|xtprime)|c(om|lrbit|mp)|in(tval|it|vert)|or|div(_(q(r)?|r)|exact)|jacobi|p(o(pcount|w(m)?)|erfect_square|rob_prime)|fact|legendre|a(nd|dd|bs)|random|gcd(ext)?|xor|m(od|ul))\b
|
|
288
|
+
- name: support.function.hash.php
|
|
289
|
+
match: (?i)\bhash(_(hmac(_file)?|init|update(_(stream|file))?|fi(nal|le)|algos))?\b
|
|
290
|
+
- name: support.function.hash_md.php
|
|
291
|
+
match: (?i)\bmd5(_file)?\b
|
|
292
|
+
- name: support.function.hash_sha.php
|
|
293
|
+
match: (?i)\bsha1(_file)?\b
|
|
294
|
+
- name: support.function.iconv.php
|
|
295
|
+
match: (?i)\b(iconv(_(s(tr(pos|len|rpos)|ubstr|et_encoding)|get_encoding|mime_(decode(_headers)?|encode)))?|ob_iconv_handler)\b
|
|
296
|
+
- name: support.function.php_imap.php
|
|
297
|
+
match: (?i)\bimap_(s(can|tatus|ort|ubscribe|e(t(_quota|flag_full|acl)|arch)|avebody)|header(s|info)|num_(recent|msg)|c(heck|l(ose|earflag_full)|reatemailbox)|t(hread|imeout)|open|delete(mailbox)?|8bit|u(n(subscribe|delete)|tf(7_(decode|encode)|8)|id)|ping|e(rrors|xpunge)|qprint|fetch(structure|header|_overview|body)|l(sub|ist|ast_error)|a(ppend|lerts)|r(e(namemailbox|open)|fc822_(parse_(headers|adrlist)|write_address))|get(subscribed|_quota(root)?|acl|mailboxes)|m(sgno|ime_header_decode|ail(_(co(py|mpose)|move)|boxmsginfo)?)|b(inary|ody(struct)?|ase64))\b
|
|
298
|
+
- name: support.function.ibase_blobs.php
|
|
299
|
+
match: (?i)\bibase_blob_(c(lose|ancel|reate)|i(nfo|mport)|open|echo|add|get)\b
|
|
300
|
+
- name: support.function.ibase_events.php
|
|
301
|
+
match: (?i)\bibase_(set_event_handler|free_event_handler|wait_event)\b
|
|
302
|
+
- name: support.function.ibase_query.php
|
|
303
|
+
match: (?i)\bibase_(n(um_(params|fields|rows)|ame_result)|p(aram_info|repare)|execute|query|f(ield_info|etch_(object|assoc|row)|ree_(query|result))|affected_rows)\b
|
|
304
|
+
- name: support.function.ibase_service.php
|
|
305
|
+
match: (?i)\bibase_(serv(ice_(detach|attach)|er_info)|d(elete_user|b_info)|add_user|restore|m(odify_user|aintain_db)|backup)\b
|
|
306
|
+
- name: support.function.interbase.php
|
|
307
|
+
match: (?i)\bibase_(c(o(nnect|mmit(_ret)?)|lose)|trans|drop_db|pconnect|err(code|msg)|rollback(_ret)?|gen_id)\b
|
|
308
|
+
- name: support.function.ldap.php
|
|
309
|
+
match: (?i)\bldap_(s(tart_tls|ort|e(t_(option|rebind_proc)|arch)|asl_bind)|next_(entry|attribute|reference)|co(nnect|unt_entries|mpare)|t61_to_8859|d(n2ufn|elete)|8859_to_t61|unbind|parse_re(sult|ference)|e(rr(no|2str|or)|xplode_dn)|f(irst_(entry|attribute|reference)|ree_result)|list|add|re(name|ad)|get_(option|dn|entries|values(_len)?|attributes)|mod_(del|add|replace)|bind)\b
|
|
310
|
+
- name: support.function.libxml.php
|
|
311
|
+
match: (?i)\blibxml_(set_streams_context|clear_errors|use_internal_errors|get_(errors|last_error))\b
|
|
312
|
+
- name: support.function.mbstring.php
|
|
313
|
+
match: (?i)\bmb_(s(tr(str|cut|to(upper|lower)|i(str|pos|mwidth)|pos|width|len|r(chr|i(chr|pos)|pos))|ubst(itute_character|r(_count)?)|end_mail)|http_(input|output)|c(heck_encoding|onvert_(case|encoding|variables|kana))|internal_encoding|output_handler|de(code_(numericentity|mimeheader)|tect_(order|encoding))|p(arse_str|referred_mime_name)|encode_(numericentity|mimeheader)|l(ist_(encodings(_alias_names)?|mime_names)|anguage)|get_info)\b
|
|
314
|
+
- name: support.function.php_mbregex.php
|
|
315
|
+
match: (?i)\bmb_(split|ereg(i(_replace)?|_(search(_(setpos|init|pos|regs|get(pos|regs)))?|replace|match))?|regex_(set_options|encoding))\b
|
|
316
|
+
- name: support.function.mcrypt.php
|
|
317
|
+
match: (?i)\bm(crypt_(c(fb|reate_iv|bc)|ofb|decrypt|e(nc(_(self_test|is_block_(algorithm(_mode)?|mode)|get_(supported_key_sizes|iv_size|key_size|algorithms_name|modes_name|block_size))|rypt)|cb)|list_(algorithms|modes)|ge(neric(_(init|deinit))?|t_(cipher_name|iv_size|key_size|block_size))|module_(self_test|close|is_block_(algorithm(_mode)?|mode)|open|get_(supported_key_sizes|algo_(key_size|block_size))))|decrypt_generic)\b
|
|
318
|
+
- name: support.function.mhash.php
|
|
319
|
+
match: (?i)\bmhash(_(count|keygen_s2k|get_(hash_name|block_size)))?\b
|
|
320
|
+
- name: support.function.mime_magic.php
|
|
321
|
+
match: (?i)\bmime_content_type\b
|
|
322
|
+
- name: support.function.ming.php
|
|
323
|
+
match: (?i)\b(swf(prebuiltclip_init|videostream_init)|ming_(set(scale|cubicthreshold)|use(swfversion|constants)|keypress))\b
|
|
324
|
+
- name: support.function.php_msql.php
|
|
325
|
+
match: (?i)\bmsql_(select_db|num_(fields|rows)|c(onnect|lose|reate_db)|d(ata_seek|rop_db|b_query)|pconnect|error|query|f(ield_(seek|name|t(ype|able)|flags|len)|etch_(object|field|array|row)|ree_result)|list_(tables|dbs|fields)|affected_rows|result)\b
|
|
326
|
+
- name: support.function.php_mssql.php
|
|
327
|
+
match: (?i)\bmssql_(select_db|n(um_(fields|rows)|ext_result)|c(onnect|lose)|init|data_seek|pconnect|execute|query|f(ield_(seek|name|type|length)|etch_(object|field|a(ssoc|rray)|row|batch)|ree_(statement|result))|r(ows_affected|esult)|g(uid_string|et_last_message)|min_(error_severity|message_severity)|bind)\b
|
|
328
|
+
- name: support.function.php_mysql.php
|
|
329
|
+
match: (?i)\bmysql_(s(tat|elect_db)|num_(fields|rows)|c(onnect|l(ient_encoding|ose)|reate_db)|thread_id|in(sert_id|fo)|d(ata_seek|rop_db|b_query)|unbuffered_query|p(connect|ing)|e(scape_string|rr(no|or))|query|f(ield_(seek|name|t(ype|able)|flags|len)|etch_(object|field|lengths|a(ssoc|rray)|row)|ree_result)|list_(tables|dbs|processes|fields)|affected_rows|re(sult|al_escape_string)|get_(server_info|host_info|client_info|proto_info))\b
|
|
330
|
+
- name: support.function.mysqli_api.php
|
|
331
|
+
match: (?i)\bmysqli_(s(sl_set|t(ore_result|at|mt_(s(tore_result|end_long_data|qlstate)|num_rows|close|in(sert_id|it)|data_seek|p(aram_count|repare)|e(rr(no|or)|xecute)|f(ield_count|etch|ree_result)|a(ttr_(set|get)|ffected_rows)|res(ult_metadata|et)|bind_(param|result)))|e(t_local_infile_(handler|default)|lect_db)|qlstate)|n(um_(fields|rows)|ext_result)|c(ha(nge_user|racter_set_name)|ommit|lose)|thread_(safe|id)|in(sert_id|it|fo)|options|d(ump_debug_info|ebug|ata_seek)|use_result|p(ing|repare)|err(no|or)|kill|f(ield_(seek|count|tell)|etch_(field(s|_direct)?|lengths|row)|ree_result)|warning_count|a(utocommit|ffected_rows)|r(ollback|eal_(connect|escape_string|query))|get_(server_(info|version)|host_info|client_(info|version)|proto_info)|more_results)\b
|
|
332
|
+
- name: support.function.mysqli_embedded.php
|
|
333
|
+
match: (?i)\bmysqli_embedded_server_(start|end)\b
|
|
334
|
+
- name: support.function.mysqli_nonapi.php
|
|
335
|
+
match: (?i)\bmysqli_(s(tmt_get_warnings|et_charset)|connect(_err(no|or))?|query|fetch_(object|a(ssoc|rray))|get_(charset|warnings)|multi_query)\b
|
|
336
|
+
- name: support.function.mysqli_repl.php
|
|
337
|
+
match: (?i)\bmysqli_(s(end_query|lave_query)|disable_r(pl_parse|eads_from_master)|enable_r(pl_parse|eads_from_master)|rpl_(p(arse_enabled|robe)|query_type)|master_query)\b
|
|
338
|
+
- name: support.function.mysqli_report.php
|
|
339
|
+
match: (?i)\bmysqli_report\b
|
|
340
|
+
- name: support.function.ncurses_functions.php
|
|
341
|
+
match: (?i)\bncurses_(s(how_panel|cr(_(set|init|dump|restore)|l)|ta(nd(out|end)|rt_color)|lk_(set|noutrefresh|c(olor|lear)|touch|init|attr(set|o(n|ff))?|re(store|fresh))|avetty)|h(ide_panel|line|a(s_(colors|i(c|l)|key)|lfdelay))|n(o(nl|cbreak|echo|qiflush|raw)|ew(_panel|pad|win)|l|apms)|c(olor_(set|content)|urs_set|l(ear|rto(eol|bot))|an_change_color|break)|t(ypeahead|imeout|op_panel|erm(name|attrs))|i(sendwin|n(s(str|ch|tr|delln|ertln)|ch|it(_(color|pair))?))|d(oupdate|e(f(ine_key|_(shell_mode|prog_mode))|l(ch|_panel|eteln|win|ay_output)))|u(se_(default_colors|e(nv|xtended_names))|nget(ch|mouse)|pdate_panels)|p(noutrefresh|utp|a(nel_(window|above|below)|ir_content)|refresh)|e(nd|cho(char)?|rase(char)?)|v(idattr|line)|k(illchar|ey(ok|pad))|qiflush|f(ilter|l(ushinp|ash))|w(stand(out|end)|hline|noutrefresh|c(olor_set|lear)|erase|vline|a(ttr(set|o(n|ff))|dd(str|ch))|refresh|getch|mo(use_trafo|ve)|border)|longname|a(ssume_default_colors|ttr(set|o(n|ff))|dd(str|nstr|ch(str|nstr)?))|r(e(set(ty|_(shell_mode|prog_mode))|place_panel|fresh)|aw)|get(yx|ch|m(ouse|axyx))|m(o(use(interval|_trafo|mask)|ve(_panel)?)|eta|v(hline|cur|inch|delch|vline|waddstr|add(str|nstr|ch(str|nstr)?)|getch))|b(o(ttom_panel|rder)|eep|kgd(set)?|audrate))\b
|
|
342
|
+
- name: support.function.oci8_interface.php
|
|
343
|
+
match: (?i)\boci(setbufferinglob|_(s(tatement_type|e(t_prefetch|rver_version))|n(um_(fields|rows)|ew_(c(o(nnect|llection)|ursor)|descriptor))|c(o(nnect|llection_(size|trim|element_(assign|get)|a(ssign|ppend)|max)|mmit)|lose|ancel)|internal_debug|define_by_name|p(connect|a(ssword_change|rse))|e(rror|xecute)|f(ield_(s(cale|ize)|name|type(_raw)?|is_null|precision)|etch(_(object|a(ssoc|ll|rray)|row))?|ree_(statement|collection|descriptor))|lob_(s(ize|eek|ave)|c(opy|lose)|t(ell|runcate)|i(s_equal|mport)|e(of|rase|xport)|flush|write(_temporary)?|load|append|re(wind|ad))|r(ollback|esult)|bind_(array_by_name|by_name))|fetchinto|getbufferinglob)\b
|
|
344
|
+
- name: support.function.birdstep.php
|
|
345
|
+
match: (?i)\bbirdstep_(c(o(nnect|mmit)|lose)|off_autocommit|exec|f(ieldn(um|ame)|etch|reeresult)|autocommit|r(ollback|esult))\b
|
|
346
|
+
- name: support.function.php_odbc.php
|
|
347
|
+
match: (?i)\b(solid_fetch_prev|odbc_(s(tatistics|pecialcolumns|etoption)|n(um_(fields|rows)|ext_result)|c(o(nnect|lumn(s|privileges)|mmit)|ursor|lose(_all)?)|table(s|privileges)|data_source|p(connect|r(imarykeys|ocedure(s|columns)|epare))|e(rror(msg)?|xec(ute)?)|f(ield_(scale|n(um|ame)|type|len)|oreignkeys|etch_(into|object|array|row)|ree_result)|longreadlen|autocommit|r(ollback|esult(_all)?)|gettypeinfo|binmode))\b
|
|
348
|
+
- name: support.function.openssl.php
|
|
349
|
+
match: (?i)\bopenssl_(s(ign|eal)|csr_(sign|new|export(_to_file)?|get_(subject|public_key))|open|p(ublic_(decrypt|encrypt)|k(cs7_(sign|decrypt|encrypt|verify)|ey_(new|export(_to_file)?|free|get_(details|p(ublic|rivate))))|rivate_(decrypt|encrypt))|error_string|verify|x509_(check(_private_key|purpose)|parse|export(_to_file)?|free|read))\b
|
|
350
|
+
- name: support.function.pcntl.php
|
|
351
|
+
match: (?i)\bpcntl_(s(ignal|etpriority)|exec|fork|w(stopsig|termsig|if(s(topped|ignaled)|exited)|exitstatus|ait(pid)?)|alarm|getpriority)\b
|
|
352
|
+
- name: support.function.php_pcre.php
|
|
353
|
+
match: (?i)\bpreg_(split|quote|last_error|replace(_callback)?|grep|match(_all)?)\b
|
|
354
|
+
- name: support.function.pdo.php
|
|
355
|
+
match: (?i)\bpdo_drivers\b
|
|
356
|
+
- name: support.function.pdo_dbh.php
|
|
357
|
+
match: (?i)\bpdo_drivers\b
|
|
358
|
+
- name: support.function.pgsql.php
|
|
359
|
+
match: (?i)\bpg_(se(nd_(prepare|execute|query(_params)?)|t_(client_encoding|error_verbosity)|lect)|host|num_(fields|rows)|c(o(n(nect(ion_(status|reset|busy))?|vert)|py_(to|from))|l(ient_encoding|ose)|ancel_query)|t(ty|ra(nsaction_status|ce))|insert|options|d(elete|bname)|u(n(trace|escape_bytea)|pdate)|p(connect|ing|ort|ut_line|arameter_status|repare)|e(scape_(string|bytea)|nd_copy|xecute)|version|query(_params)?|f(ield_(size|n(um|ame)|t(ype(_oid)?|able)|is_null|prtlen)|etch_(object|a(ssoc|ll(_columns)?|rray)|r(ow|esult))|ree_result)|l(o_(seek|c(lose|reate)|tell|import|open|unlink|export|write|read(_all)?)|ast_(notice|oid|error))|affected_rows|result_(s(tatus|eek)|error(_field)?)|get_(notify|pid|result)|meta_data)\b
|
|
360
|
+
- name: support.function.posix.php
|
|
361
|
+
match: (?i)\bposix_(s(trerror|et(sid|uid|pgid|e(uid|gid)|gid))|ctermid|t(tyname|imes)|i(satty|nitgroups)|uname|kill|access|get(sid|cwd|uid|_last_error|p(id|pid|w(nam|uid)|g(id|rp))|e(uid|gid)|login|rlimit|g(id|r(nam|oups|gid)))|mk(nod|fifo))\b
|
|
362
|
+
- name: support.function.pspell.php
|
|
363
|
+
match: (?i)\bpspell_(s(tore_replacement|uggest|ave_wordlist)|new(_(config|personal))?|c(heck|onfig_(save_repl|create|ignore|d(ict_dir|ata_dir)|personal|r(untogether|epl)|mode)|lear_session)|add_to_(session|personal))\b
|
|
364
|
+
- name: support.function.readline.php
|
|
365
|
+
match: (?i)\breadline(_(c(ompletion_function|lear_history|allback_(handler_(install|remove)|read_char))|info|on_new_line|write_history|list_history|add_history|re(display|ad_history)))?\b
|
|
366
|
+
- name: support.function.recode.php
|
|
367
|
+
match: (?i)\brecode_(string|file)\b
|
|
368
|
+
- name: support.function.session.php
|
|
369
|
+
match: (?i)\bsession_(s(tart|et_(save_handler|cookie_params)|ave_path)|name|cache_(expire|limiter)|i(s_registered|d)|de(stroy|code)|un(set|register)|encode|write_close|reg(ister|enerate_id)|get_cookie_params|module_name)\b
|
|
370
|
+
- name: support.function.shmop.php
|
|
371
|
+
match: (?i)\bshmop_(size|close|open|delete|write|read)\b
|
|
372
|
+
- name: support.function.simplexml.php
|
|
373
|
+
match: (?i)\bsimplexml_(import_dom|load_(string|file))\b
|
|
374
|
+
- name: support.function.skeleton.php
|
|
375
|
+
match: (?i)\bconfirm_extname_compiled\b
|
|
376
|
+
- name: support.function.snmp.php
|
|
377
|
+
match: (?i)\b(snmp(set|2_(set|walk|real_walk|get(next)?)|_(set_(oid_output_format|enum_print|valueretrieval|quick_print)|read_mib|get_(valueretrieval|quick_print))|3_(set|walk|real_walk|get(next)?)|walk|realwalk|get(next)?)|php_snmpv3)\b
|
|
378
|
+
- name: support.function.sockets.php
|
|
379
|
+
match: (?i)\bsocket_(s(hutdown|trerror|e(nd(to)?|t_(nonblock|option|block)|lect))|c(onnect|l(ose|ear_error)|reate(_(pair|listen))?)|write|l(isten|ast_error)|accept|re(cv(from)?|ad)|get(sockname|_option|peername)|bind)\b
|
|
380
|
+
- name: support.function.php_spl.php
|
|
381
|
+
match: (?i)\b(spl_(classes|object_hash|autoload(_(call|unregister|extensions|functions|register))?)|class_(implements|parents))\b
|
|
382
|
+
- name: support.function.spl_iterators.php
|
|
383
|
+
match: (?i)\biterator_(count|to_array|apply)\b
|
|
384
|
+
- name: support.function.sqlite.php
|
|
385
|
+
match: (?i)\bsqlite_(s(ingle_query|eek)|has_prev|n(um_(fields|rows)|ext)|c(hanges|olumn|urrent|lose|reate_(function|aggregate))|open|u(nbuffered_query|df_(decode_binary|encode_binary))|p(open|rev)|e(scape_string|rror_string|xec)|valid|key|query|f(ield_name|etch_(single|column_types|object|a(ll|rray))|actory)|l(ib(encoding|version)|ast_(insert_rowid|error))|array_query|rewind|busy_timeout)\b
|
|
386
|
+
- name: support.function.array.php
|
|
387
|
+
match: (?i)(=>)|\b(list|array|s(huffle|ort)|n(ext|at(sort|casesort))|c(o(unt|mpact)|urrent)|in_array|u(sort|ksort|asort)|prev|e(nd|xtract)|k(sort|ey|rsort)|a(sort|r(sort|ray_(s(hift|um|plice|earch|lice)|c(h(unk|ange_key_case)|o(unt_values|mbine))|intersect(_(u(key|assoc)|key|assoc))?|diff(_(u(key|assoc)|key|assoc))?|u(n(shift|ique)|intersect(_(uassoc|assoc))?|diff(_(uassoc|assoc))?)|p(op|ush|ad|roduct)|values|key(s|_exists)|f(il(ter|l(_keys)?)|lip)|walk(_recursive)?|r(e(duce|verse)|and)|m(ultisort|erge(_recursive)?|ap))))|r(sort|eset|ange)|m(in|ax))\b
|
|
388
|
+
- name: support.function.assert.php
|
|
389
|
+
match: (?i)\bassert(_options)?\b
|
|
390
|
+
- name: support.function.base64.php
|
|
391
|
+
match: (?i)\bbase64_(decode|encode)\b
|
|
392
|
+
- name: support.function.basic_functions.php
|
|
393
|
+
match: (?i)\b(s(ys_getloadavg|et_(include_path|magic_quotes_runtime)|leep)|highlight_(string|file)|c(on(stant|nection_(status|aborted))|all_user_(func(_array)?|method(_array)?))|time_(sleep_until|nanosleep)|i(s_uploaded_file|n(i_(set|restore|get(_all)?)|et_(ntop|pton))|p2long|gnore_user_abort|mport_request_variables)|u(sleep|nregister_tick_function)|p(hp_strip_whitespace|utenv|arse_ini_file|rint_r)|error_(log|get_last)|flush|long2ip|re(store_include_path|gister_(shutdown_function|tick_function))|get(servby(name|port)|opt|_(c(urrent_user|fg_var)|include_path|magic_quotes_(runtime|gpc))|protobyn(umber|ame)|env)|move_uploaded_file)\b
|
|
394
|
+
- name: support.function.browscap.php
|
|
395
|
+
match: (?i)\bget_browser\b
|
|
396
|
+
- name: support.function.crc32.php
|
|
397
|
+
match: (?i)\bcrc32\b
|
|
398
|
+
- name: support.function.crypt.php
|
|
399
|
+
match: (?i)\bcrypt\b
|
|
400
|
+
- name: support.function.cyr_convert.php
|
|
401
|
+
match: (?i)\bconvert_cyr_string\b
|
|
402
|
+
- name: support.function.datetime.php
|
|
403
|
+
match: (?i)\bstrptime\b
|
|
404
|
+
- name: support.function.dir.php
|
|
405
|
+
match: (?i)\b(scandir|c(h(dir|root)|losedir)|opendir|dir|re(winddir|addir)|g(etcwd|lob))\b
|
|
406
|
+
- name: support.function.dl.php
|
|
407
|
+
match: (?i)\bdl\b
|
|
408
|
+
- name: support.function.dns.php
|
|
409
|
+
match: (?i)\b(dns_(check_record|get_(record|mx))|gethostby(name(l)?|addr))\b
|
|
410
|
+
- name: support.function.exec.php
|
|
411
|
+
match: (?i)\b(s(hell_exec|ystem)|p(assthru|roc_nice)|e(scapeshell(cmd|arg)|xec))\b
|
|
412
|
+
- name: support.function.file.php
|
|
413
|
+
match: (?i)\b(sys_get_temp_dir|copy|t(empnam|mpfile)|u(nlink|mask)|p(close|open)|f(s(canf|tat|eek)|nmatch|close|t(ell|runcate)|ile(_(put_contents|get_contents))?|open|p(utcsv|assthru)|eof|flush|write|lock|read|get(s(s)?|c(sv)?))|r(e(name|wind|a(dfile|lpath))|mdir)|get_meta_tags|mkdir)\b
|
|
414
|
+
- name: support.function.filestat.php
|
|
415
|
+
match: (?i)\b(stat|c(h(own|grp|mod)|learstatcache)|touch|is_(dir|executable|file|writable|link|readable)|disk_(total_space|free_space)|file(size|ctime|type|inode|owner|_exists|perms|atime|group|mtime)|l(stat|chgrp))\b
|
|
416
|
+
- name: support.function.formatted_print.php
|
|
417
|
+
match: (?i)\b(sprintf|printf|v(sprintf|printf|fprintf)|fprintf)\b
|
|
418
|
+
- name: support.function.fsock.php
|
|
419
|
+
match: (?i)\b(pfsockopen|fsockopen)\b
|
|
420
|
+
- name: support.function.ftok.php
|
|
421
|
+
match: (?i)\bftok\b
|
|
422
|
+
- name: support.function.head.php
|
|
423
|
+
match: (?i)\b(set(cookie|rawcookie)|header(s_(sent|list))?)\b
|
|
424
|
+
- name: support.function.html.php
|
|
425
|
+
match: (?i)\b(html(specialchars(_decode)?|_entity_decode|entities)|get_html_translation_table)\b
|
|
426
|
+
- name: support.function.http.php
|
|
427
|
+
match: (?i)\bhttp_build_query\b
|
|
428
|
+
- name: support.function.image.php
|
|
429
|
+
match: (?i)\b(image_type_to_(extension|mime_type)|getimagesize)\b
|
|
430
|
+
- name: support.function.info.php
|
|
431
|
+
match: (?i)\b(zend_logo_guid|php(credits|info|_(sapi_name|ini_scanned_files|uname|egg_logo_guid|logo_guid|real_logo_guid)|version))\b
|
|
432
|
+
- name: support.function.iptc.php
|
|
433
|
+
match: (?i)\biptc(parse|embed)\b
|
|
434
|
+
- name: support.function.lcg.php
|
|
435
|
+
match: (?i)\blcg_value\b
|
|
436
|
+
- name: support.function.levenshtein.php
|
|
437
|
+
match: (?i)\blevenshtein\b
|
|
438
|
+
- name: support.function.link.php
|
|
439
|
+
match: (?i)\b(symlink|link(info)?|readlink)\b
|
|
440
|
+
- name: support.function.mail.php
|
|
441
|
+
match: (?i)\b(ezmlm_hash|mail)\b
|
|
442
|
+
- name: support.function.math.php
|
|
443
|
+
match: (?i)\b(s(in(h)?|qrt)|h(ypot|exdec)|number_format|c(os(h)?|eil)|tan(h)?|is_(nan|infinite|finite)|octdec|de(c(hex|oct|bin)|g2rad)|p(i|ow)|exp(m1)?|f(loor|mod)|log(1(p|0))?|a(sin(h)?|cos(h)?|tan(h|2)?|bs)|r(ound|ad2deg)|b(indec|ase_convert))\b
|
|
444
|
+
- name: support.function.md5.php
|
|
445
|
+
match: (?i)\bmd5(_file)?\b
|
|
446
|
+
- name: support.function.metaphone.php
|
|
447
|
+
match: (?i)\bmetaphone\b
|
|
448
|
+
- name: support.function.microtime.php
|
|
449
|
+
match: (?i)\b(get(timeofday|rusage)|microtime)\b
|
|
450
|
+
- name: support.function.pack.php
|
|
451
|
+
match: (?i)\b(unpack|pack)\b
|
|
452
|
+
- name: support.function.pageinfo.php
|
|
453
|
+
match: (?i)\bget(lastmod|my(inode|uid|pid|gid))\b
|
|
454
|
+
- name: support.function.proc_open.php
|
|
455
|
+
match: (?i)\bproc_(close|terminate|open|get_status)\b
|
|
456
|
+
- name: support.function.quot_print.php
|
|
457
|
+
match: (?i)\bquoted_printable_decode\b
|
|
458
|
+
- name: support.function.rand.php
|
|
459
|
+
match: (?i)\b(srand|rand|getrandmax|mt_(srand|rand|getrandmax))\b
|
|
460
|
+
- name: support.function.reg.php
|
|
461
|
+
match: (?i)\b(s(plit(i)?|ql_regcase)|ereg(i(_replace)?|_replace)?)\b
|
|
462
|
+
- name: support.function.sha1.php
|
|
463
|
+
match: (?i)\bsha1(_file)?\b
|
|
464
|
+
- name: support.function.soundex.php
|
|
465
|
+
match: (?i)\bsoundex\b
|
|
466
|
+
- name: support.function.streamsfuncs.php
|
|
467
|
+
match: (?i)\bstream_(s(ocket_(s(hutdown|e(ndto|rver))|client|pair|enable_crypto|accept|recvfrom|get_name)|e(t_(timeout|write_buffer|blocking)|lect))|co(ntext_(set_(option|params)|create|get_(options|default))|py_to_stream)|filter_(prepend|append|remove)|get_(contents|transports|wrappers|line|meta_data))\b
|
|
468
|
+
- name: support.function.string.php
|
|
469
|
+
match: (?i)\b(echo|print|s(scanf|tr(s(tr|pn)|natc(asecmp|mp)|c(spn|hr|oll)|t(o(upper|k|lower)|r)|i(str|p(slashes|cslashes|os|_tags))|_(s(huffle|plit)|ireplace|pad|word_count|r(ot13|ep(eat|lace)))|p(os|brk)|r(chr|ipos|pos|ev))|imilar_text|ubstr(_(co(unt|mpare)|replace))?|etlocale)|hebrev(c)?|nl(2br|_langinfo)|c(h(unk_split|r)|ount_chars)|trim|implode|ord|dirname|uc(first|words)|join|pa(thinfo|rse_str)|explode|quotemeta|wordwrap|l(trim|ocaleconv)|add(slashes|cslashes)|rtrim|money_format|b(in2hex|asename))\b
|
|
470
|
+
- name: support.function.syslog.php
|
|
471
|
+
match: (?i)\b(syslog|closelog|openlog|define_syslog_variables)\b
|
|
472
|
+
- name: support.function.type.php
|
|
473
|
+
match: (?i)\b(s(trval|ettype)|i(s_(s(calar|tring)|nu(ll|meric)|callable|object|float|long|array|resource|bool)|ntval)|floatval|gettype)\b
|
|
474
|
+
- name: support.function.uniqid.php
|
|
475
|
+
match: (?i)\buniqid\b
|
|
476
|
+
- name: support.function.url.php
|
|
477
|
+
match: (?i)\b(url(decode|encode)|parse_url|rawurl(decode|encode)|get_headers)\b
|
|
478
|
+
- name: support.function.user_filters.php
|
|
479
|
+
match: (?i)\bstream_(filter_register|get_filters|bucket_(new|prepend|append|make_writeable))\b
|
|
480
|
+
- name: support.function.uuencode.php
|
|
481
|
+
match: (?i)\bconvert_uu(decode|encode)\b
|
|
482
|
+
- name: support.function.var.php
|
|
483
|
+
match: (?i)\b((un|is)set|empty|serialize|debug_zval_dump|unserialize|var_(dump|export)|memory_get_(usage|peak_usage))\b
|
|
484
|
+
- name: support.function.versioning.php
|
|
485
|
+
match: (?i)\bversion_compare\b
|
|
486
|
+
- name: support.function.php_sybase_db.php
|
|
487
|
+
match: (?i)\bsybase_(select_db|num_(fields|rows)|c(onnect|lose)|data_seek|pconnect|query|f(ield_seek|etch_(object|field|array|row)|ree_result)|affected_rows|result|get_last_message|min_(error_severity|message_severity))\b
|
|
488
|
+
- name: support.function.php_sybase_ct.php
|
|
489
|
+
match: (?i)\bsybase_(se(t_message_handler|lect_db)|num_(fields|rows)|c(onnect|lose)|d(eadlock_retry_count|ata_seek)|unbuffered_query|pconnect|query|f(ield_seek|etch_(object|field|a(ssoc|rray)|row)|ree_result)|affected_rows|result|get_last_message|min_(server_severity|client_severity))\b
|
|
490
|
+
- name: support.function.sysvmsg.php
|
|
491
|
+
match: (?i)\bmsg_(s(tat_queue|e(nd|t_queue))|re(ceive|move_queue)|get_queue)\b
|
|
492
|
+
- name: support.function.sysvsem.php
|
|
493
|
+
match: (?i)\bsem_(acquire|re(lease|move)|get)\b
|
|
494
|
+
- name: support.function.sysvshm.php
|
|
495
|
+
match: (?i)\bshm_(detach|put_var|attach|remove(_var)?|get_var)\b
|
|
496
|
+
- name: support.function.tidy.php
|
|
497
|
+
match: (?i)\btidy_(c(onfig_count|lean_repair)|is_x(html|ml)|diagnose|parse_(string|file)|error_count|warning_count|access_count|repair_(string|file)|get(opt|_(status|h(tml(_ver)?|ead)|config|o(utput|pt_doc)|error_buffer|r(oot|elease)|body)))\b
|
|
498
|
+
- name: support.function.tokenizer.php
|
|
499
|
+
match: (?i)\btoken_(name|get_all)\b
|
|
500
|
+
- name: support.function.wddx.php
|
|
501
|
+
match: (?i)\bwddx_(serialize_va(lue|rs)|deserialize|packet_(start|end)|add_vars)\b
|
|
502
|
+
- name: support.function.xml.php
|
|
503
|
+
match: (?i)\b(utf8_(decode|encode)|xml_(set_(start_namespace_decl_handler|notation_decl_handler|character_data_handler|object|default_handler|unparsed_entity_decl_handler|processing_instruction_handler|e(nd_namespace_decl_handler|lement_handler|xternal_entity_ref_handler))|parse(_into_struct|r_(set_option|create(_ns)?|free|get_option))?|error_string|get_(current_(column_number|line_number|byte_index)|error_code)))\b
|
|
504
|
+
- name: support.function.xmlrpc-epi-php.php
|
|
505
|
+
match: (?i)\bxmlrpc_(se(t_type|rver_(c(all_method|reate)|destroy|add_introspection_data|register_(introspection_callback|method)))|is_fault|decode(_request)?|parse_method_descriptions|encode(_request)?|get_type)\b
|
|
506
|
+
- name: support.function.php_xmlwriter.php
|
|
507
|
+
match: (?i)\bxmlwriter_(s(tart_(c(omment|data)|d(td(_(e(ntity|lement)|attlist))?|ocument)|pi|element(_ns)?|attribute(_ns)?)|et_indent(_string)?)|text|o(utput_memory|pen_(uri|memory))|end_(c(omment|data)|d(td(_(e(ntity|lement)|attlist))?|ocument)|pi|element|attribute)|f(ull_end_element|lush)|write_(c(omment|data)|dtd(_(e(ntity|lement)|attlist))?|pi|element(_ns)?|attribute(_ns)?|raw))\b
|
|
508
|
+
- name: support.function.xsltprocessor.php
|
|
509
|
+
match: (?i)\bxsl_xsltprocessor_(set_parameter|has_exslt_support|transform_to_(doc|uri|xml)|import_stylesheet|re(gister_php_functions|move_parameter)|get_parameter)\b
|
|
510
|
+
- name: support.function.php_zip.php
|
|
511
|
+
match: (?i)\b(s(tat(Name|Index)|et(Comment(Name|Index)|ArchiveComment))|c(lose|reateEmptyDir)|zip_(close|open|entry_(name|c(ompress(ionmethod|edsize)|lose)|open|filesize|read)|read)|open|delete(Name|Index)|unchange(Name|Index|All)|locateName|addF(ile|romString)|rename(Name|Index)|get(Stream|NameIndex|Comment(Name|Index)|From(Name|Index)|ArchiveComment))\b
|
|
512
|
+
- name: support.function.zlib.php
|
|
513
|
+
match: (?i)\b(zlib_get_coding_type|ob_gzhandler|readgzfile|gz(compress|inflate|open|deflate|uncompress|encode|file))\b
|
|
514
|
+
- name: support.function.main.php
|
|
515
|
+
match: (?i)\bset_time_limit\b
|
|
516
|
+
- name: support.function.output.php
|
|
517
|
+
match: (?i)\bo(utput_(add_rewrite_var|reset_rewrite_vars)|b_(start|clean|implicit_flush|end_(clean|flush)|flush|list_handlers|get_(status|c(ontents|lean)|flush|le(ngth|vel))))\b
|
|
518
|
+
- name: support.function.userspace.php
|
|
519
|
+
match: (?i)\bstream_wrapper_(unregister|re(store|gister))\b
|
|
520
|
+
- name: support.function.php_apache.php
|
|
521
|
+
match: (?i)\b(virtual|apache_(setenv|note|child_terminate|lookup_uri|re(s(ponse_headers|et_timeout)|quest_headers)|get_(version|modules))|getallheaders)\b
|
|
522
|
+
- name: support.function.php_functions.php
|
|
523
|
+
match: (?i)\b(virtual|apache_(setenv|note|response_headers|get(_(version|modules)|env))|getallheaders)\b
|
|
524
|
+
- name: support.function.php_functions.php
|
|
525
|
+
match: (?i)\b(virtual|apache_(setenv|note|response_headers|get(_(version|modules)|env))|getallheaders)\b
|
|
526
|
+
- name: support.function.php_apache.php
|
|
527
|
+
match: (?i)\b(virtual|apache_(setenv|note|child_terminate|lookup_uri|get_(version|modules)|re(sponse_headers|quest_(s(ome_auth_required|ub_req_(lookup_(uri|file)|method_uri)|e(t_(etag|last_modified)|rver_port)|atisfies)|headers(_(in|out))?|is_initial_req|discard_request_body|update_mtime|err_headers_out|log_error|auth_(name|type)|r(un|emote_host)|meets_conditions|basic_auth_pw)))|getallheaders)\b
|
|
528
|
+
- name: support.function.php_milter.php
|
|
529
|
+
match: (?i)\bsmfi_(set(timeout|flags|reply)|chgheader|delrcpt|add(header|rcpt)|replacebody|getsymval)\b
|
|
530
|
+
- name: support.function.nsapi.php
|
|
531
|
+
match: (?i)\bnsapi_(virtual|re(sponse_headers|quest_headers))\b
|
|
532
|
+
- name: support.class.builtin
|
|
533
|
+
match: (?i)\b(Re(cursive(RegexIterator|CachingIterator|IteratorIterator|DirectoryIterator|FilterIterator|ArrayIterator)|flection(Method|Class|Object|Extension|P(arameter|roperty)|Function)?|gexIterator)|swf(s(hape|ound|prite)|text(field)?|displayitem|f(ill|ont(cha(r)?)?)|action|gradient|mo(vie|rph)|b(itmap|utton))|XMLReader|tidyNode|S(impleXML(Iterator|Element)|oap(Header|Server|Client|Param|Var|Fault)|pl(TempFileObject|ObjectStorage|File(Info|Object)))|NoRewindIterator|C(OMPersistHelper|achingIterator)|I(nfiniteIterator|teratorIterator)|D(irectoryIterator|OM(XPath|Node|C(omment|dataSection)|Text|Document(Fragment)?|ProcessingInstruction|E(ntityReference|lement)|Attr)|ateTime(Zone)?)|P(DO(Statement)?|arentIterator)|E(rrorException|mptyIterator|xception)|FilterIterator|LimitIterator|A(p(pendIterator|acheRequest)|rray(Iterator|Object)))\b
|
|
534
|
+
- name: string.unquoted.heredoc.php
|
|
535
|
+
endCaptures:
|
|
536
|
+
"1":
|
|
537
|
+
name: keyword.operator.heredoc.php
|
|
538
|
+
"2":
|
|
539
|
+
name: punctuation.definition.string.php
|
|
540
|
+
begin: (<<<)([a-zA-Z_]+[a-zA-Z0-9_]*)
|
|
541
|
+
beginCaptures:
|
|
542
|
+
"1":
|
|
543
|
+
name: punctuation.definition.string.php
|
|
544
|
+
"2":
|
|
545
|
+
name: keyword.operator.heredoc.php
|
|
546
|
+
end: ^(\2)(;?)$
|
|
547
|
+
patterns:
|
|
548
|
+
- include: "#var_complex_string_heredoc"
|
|
549
|
+
- name: keyword.operator.comparison.php
|
|
550
|
+
match: (===|==|!==|!=|<=|>=|<>|<|>)
|
|
551
|
+
- name: keyword.operator.error-control.php
|
|
552
|
+
match: (@)
|
|
553
|
+
- name: keyword.operator.increment-decrement.php
|
|
554
|
+
match: (\-\-|\+\+)
|
|
555
|
+
- name: keyword.operator.arithmetic.php
|
|
556
|
+
match: (\-|\+|\*|\/|%)
|
|
557
|
+
- name: keyword.operator.logical.php
|
|
558
|
+
match: (!|&&|\|\|)|\b(and|or|xor|as)\b
|
|
559
|
+
- name: keyword.operator.string.php
|
|
560
|
+
match: (\.=|\.)
|
|
561
|
+
- name: keyword.operator.type.php
|
|
562
|
+
match: \b(instanceof)\b
|
|
563
|
+
- name: constant.numeric.php
|
|
564
|
+
match: \b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)\b
|
|
565
|
+
- include: "#string-double-quoted"
|
|
566
|
+
- include: "#string-single-quoted"
|
|
567
|
+
- include: "#string-backtick"
|
|
568
|
+
- include: "#var_global"
|
|
569
|
+
- include: "#var_global_safer"
|
|
570
|
+
- include: "#var_basic"
|
|
571
|
+
- captures:
|
|
572
|
+
"1":
|
|
573
|
+
name: keyword.operator.php
|
|
574
|
+
"2":
|
|
575
|
+
name: variable.other.property.php
|
|
576
|
+
match: (?<=[a-zA-Z0-9_\x{7f}-\x{ff}])(->)([a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*?)\b
|
|
577
|
+
- include: "#language_constant"
|
|
578
|
+
- name: support.constant.core.php
|
|
579
|
+
match: \b(DEFAULT_INCLUDE_PATH|E_(ALL|COMPILE_(ERROR|WARNING)|CORE_(ERROR|WARNING)|(RECOVERABLE_)?ERROR|NOTICE|PARSE|STRICT|USER_(ERROR|NOTICE|WARNING)|WARNING)|PEAR_(EXTENSION_DIR|INSTALL_DIR)|PHP_(BINDIR|CONFIG_FILE_PATH|DATADIR|E(OL|XTENSION_DIR)|L(IBDIR|OCALSTATEDIR)|O(S|UTPUT_HANDLER_CONT|UTPUT_HANDLER_END|UTPUT_HANDLER_START)|SYSCONFDIR|VERSION))\b
|
|
580
|
+
- name: support.constant.std.php
|
|
581
|
+
match: \b(A(B(DAY_([1-7])|MON_([0-9]{1,2}))|LT_DIGITS|M_STR|SSERT_(ACTIVE|BAIL|CALLBACK|QUIET_EVAL|WARNING))|C(ASE_(LOWER|UPPER)|HAR_MAX|O(DESET|NNECTION_(ABORTED|NORMAL|TIMEOUT)|UNT_(NORMAL|RECURSIVE))|REDITS_(ALL|DOCS|FULLPAGE|GENERAL|GROUP|MODULES|QA|SAPI)|RNCYSTR|RYPT_(BLOWFISH|EXT_DES|MD5|SALT_LENGTH|STD_DES)|URRENCY_SYMBOL)|D(AY_([1-7])|ECIMAL_POINT|IRECTORY_SEPARATOR|_(FMT|T_FMT))|E(NT_(COMPAT|NOQUOTES|QUOTES)|RA(|_D_FMT|_D_T_FMT|_T_FMT|_YEAR)|XTR_(IF_EXISTS|OVERWRITE|PREFIX_(ALL|IF_EXISTS|INVALID|SAME)|SKIP))|FRAC_DIGITS|GROUPING|HTML_(ENTITIES|SPECIALCHARS)|IN(FO_(ALL|CONFIGURATION|CREDITS|ENVIRONMENT|GENERAL|LICENSE|MODULES|VARIABLES)|I_(ALL|PERDIR|SYSTEM|USER)|T_(CURR_SYMBOL|FRAC_DIGITS))|L(C_(ALL|COLLATE|CTYPE|MESSAGES|MONETARY|NUMERIC|TIME)|O(CK_(EX|NB|SH|UN)|G_(ALERT|AUTH(|PRIV)|CONS|CRIT|CRON|DAEMON|DEBUG|EMERG|ERR|INFO|KERN|LOCAL([0-7])|LPR|MAIL|NDELAY|NEWS|NOTICE|NOWAIT|ODELAY|PERROR|PID|SYSLOG|USER|UUCP|WARNING)))|M(ON_([0-9]{1,2}|DECIMAL_POINT|GROUPING|THOUSANDS_SEP)|YSQL_(ASSOC|BOTH|NUM)|_(1_PI|2_(PI|SQRTPI)|E|L(N10|N2|OG(10E|2E))|PI(|_2|_4)|SQRT1_2|SQRT2))|N(EGATIVE_SIGN|O(EXPR|STR)|_(CS_PRECEDES|SEP_BY_SPACE|SIGN_POSN))|P(ATH(INFO_(BASENAME|DIRNAME|EXTENSION)|_SEPARATOR)|M_STR|OSITIVE_SIGN|_(CS_PRECEDES|SEP_BY_SPACE|SIGN_POSN))|RADIXCHAR|S(EEK_(CUR|END|SET)|ORT_(ASC|DESC|NUMERIC|REGULAR|STRING)|TR_PAD_(BOTH|LEFT|RIGHT))|T(HOUS(ANDS_SEP|EP)|_(FMT(|_AMPM)))|YES(EXPR|STR))\b
|
|
582
|
+
var_basic:
|
|
583
|
+
name: variable.other.php
|
|
584
|
+
captures:
|
|
585
|
+
"1":
|
|
586
|
+
name: punctuation.definition.variable.php
|
|
587
|
+
match: (\$+)[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*?\b
|
|
588
|
+
string-backtick:
|
|
589
|
+
name: string.interpolated.php
|
|
590
|
+
endCaptures:
|
|
591
|
+
"0":
|
|
592
|
+
name: punctuation.definition.string.end.php
|
|
593
|
+
begin: `
|
|
594
|
+
beginCaptures:
|
|
595
|
+
"0":
|
|
596
|
+
name: punctuation.definition.string.begin.php
|
|
597
|
+
end: `
|
|
598
|
+
patterns:
|
|
599
|
+
- name: constant.character.escape.php
|
|
600
|
+
match: \\.
|
|
601
|
+
- include: "#var_complex_string_heredoc"
|
|
602
|
+
var_global_safer:
|
|
603
|
+
name: variable.other.global.safer.php
|
|
604
|
+
captures:
|
|
605
|
+
"2":
|
|
606
|
+
name: punctuation.definition.variable.php
|
|
607
|
+
match: ((\$)(GLOBALS|_(ENV|SERVER|SESSION)))|\b(global)\b
|
|
608
|
+
var_complex_string_heredoc:
|
|
609
|
+
name: variable.other.php
|
|
610
|
+
match: (?<regex>(?#simple syntax)\$(?<name>[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*)(?:\[(?<index>[a-zA-Z0-9_\x{7f}-\x{ff}]+|\$\g<name>)\]|->\g<name>)?|(?#simple syntax with braces)\$\{(?:\g<name>(?<indices>\[(?:\g<index>|'(?:\\.|[^'\\])*'|"(?:\g<regex>|\\.|[^"\\])*")\])?|\g<complex>|\$\{\g<complex>\})\}|(?#complex syntax)\{(?<complex>\$(?<segment>\g<name>\g<indices>*)(?:->\g<segment>)*|\$\g<complex>|\$\{\g<complex>\})\})
|
|
611
|
+
string-single-quoted:
|
|
612
|
+
name: string.quoted.single.php
|
|
613
|
+
endCaptures:
|
|
614
|
+
"0":
|
|
615
|
+
name: punctuation.definition.string.end.php
|
|
616
|
+
begin: "'"
|
|
617
|
+
beginCaptures:
|
|
618
|
+
"0":
|
|
619
|
+
name: punctuation.definition.string.begin.php
|
|
620
|
+
end: "'"
|
|
621
|
+
patterns:
|
|
622
|
+
- name: constant.character.escape.php
|
|
623
|
+
match: \\.
|
|
624
|
+
var_global:
|
|
625
|
+
name: variable.other.global.php
|
|
626
|
+
captures:
|
|
627
|
+
"1":
|
|
628
|
+
name: punctuation.definition.variable.php
|
|
629
|
+
match: (\$)(_(COOKIE|FILES|GET|POST|REQUEST))\b
|
|
630
|
+
php_doc:
|
|
631
|
+
patterns:
|
|
632
|
+
- name: invalid.illegal.missing-asterisk.phpdoc.php
|
|
633
|
+
match: ^(?!\s*\*).*$\n?
|
|
634
|
+
comment: PHPDocumentor only recognises lines with an asterisk as the first non-whitespaces character
|
|
635
|
+
- captures:
|
|
636
|
+
"1":
|
|
637
|
+
name: keyword.other.phpdoc.php
|
|
638
|
+
"3":
|
|
639
|
+
name: storage.modifier.php
|
|
640
|
+
"4":
|
|
641
|
+
name: invalid.illegal.wrong-access-type.phpdoc.php
|
|
642
|
+
match: ^\s*\*\s*(@access)\s+((public|private|protected)|(.+))\s*$
|
|
643
|
+
- name: markup.underline.link
|
|
644
|
+
match: ((https?|s?ftp|ftps|file|smb|afp|nfs|(x-)?man|gopher|txmt)://|mailto:)[-:@a-zA-Z0-9_.~%+/?=&#]+(?<![.?:])
|
|
645
|
+
- captures:
|
|
646
|
+
"1":
|
|
647
|
+
name: keyword.other.phpdoc.php
|
|
648
|
+
"2":
|
|
649
|
+
name: markup.underline.link
|
|
650
|
+
match: (@xlink)\s+(.+)\s*$
|
|
651
|
+
- name: keyword.other.phpdoc.php
|
|
652
|
+
match: \@(a(bstract|uthor)|c(ategory|opyright)|global|li(cense|nk)|pa(ckage|ram)|return|s(ee|ince|tatic|ubpackage)|t(hrows|odo)|v(ar|ersion)|uses|deprecated|final)\b
|
|
653
|
+
- name: meta.tag.inline.phpdoc.php
|
|
654
|
+
captures:
|
|
655
|
+
"1":
|
|
656
|
+
name: keyword.other.phpdoc.php
|
|
657
|
+
match: \{(@(link)).+?\}
|
|
658
|
+
uuid: 22986475-8CA5-11D9-AEDD-000D93C8BE28
|
|
659
|
+
foldingStartMarker: (/\*|\{\s*$|<<<HTML)
|
|
660
|
+
patterns:
|
|
661
|
+
- captures:
|
|
662
|
+
"0":
|
|
663
|
+
name: punctuation.section.embedded.php
|
|
664
|
+
begin: <\?(?i:php|=)?
|
|
665
|
+
end: \?>
|
|
666
|
+
patterns:
|
|
667
|
+
- name: comment.line.number-sign.php
|
|
668
|
+
captures:
|
|
669
|
+
"1":
|
|
670
|
+
name: punctuation.definition.comment.php
|
|
671
|
+
match: (#).*?(?=\?>)
|
|
672
|
+
- name: comment.line.double-slash.php
|
|
673
|
+
captures:
|
|
674
|
+
"1":
|
|
675
|
+
name: punctuation.definition.comment.php
|
|
676
|
+
match: (//).*?(?=\?>)
|
|
677
|
+
- include: "#language"
|
|
678
|
+
foldingStopMarker: (\*/|^\s*\}|^HTML;)
|