Added support for CFScript (#2771)

This commit is contained in:
Matthew J. Clemente 2021-02-19 11:11:51 -05:00 committed by GitHub
parent f79b0eefbb
commit b0a6ec85ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 467 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -238,6 +238,12 @@
"require": "c",
"owner": "zeitgeist87"
},
"cfscript": {
"title": "CFScript",
"require": "clike",
"alias": "cfc",
"owner": "mjclemente"
},
"chaiscript": {
"title": "ChaiScript",
"require": ["clike", "cpp"],

View File

@ -0,0 +1,44 @@
// https://cfdocs.org/script
Prism.languages.cfscript = Prism.languages.extend('clike', {
'comment': [
{
pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
lookbehind: true,
inside: {
'annotation': {
pattern: /(?:^|[^.])@[\w\.]+/,
alias: 'punctuation'
}
}
},
{
pattern: /(^|[^\\:])\/\/.*/,
lookbehind: true,
greedy: true
}
],
'keyword': /\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*\=)/,
'operator': [
/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,
/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/
],
'scope': {
pattern: /\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,
alias: 'global'
},
'type': {
pattern: /\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,
alias: 'builtin'
}
});
Prism.languages.insertBefore('cfscript', 'keyword', {
// This must be declared before keyword because we use "function" inside the lookahead
'function-variable': {
pattern: /[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
alias: 'function'
}
});
delete Prism.languages.cfscript['class-name'];
Prism.languages.cfc = Prism.languages['cfscript'];

1
components/prism-cfscript.min.js vendored Normal file
View File

@ -0,0 +1 @@
Prism.languages.cfscript=Prism.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*\=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),Prism.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete Prism.languages.cfscript["class-name"],Prism.languages.cfc=Prism.languages.cfscript;

View File

@ -0,0 +1,43 @@
<h2>Comments</h2>
<pre><code>// This is a comment
/* This is a comment
on multiple lines */
/**
* This is a Javadoc style comment
*
* @hint This is an annotation
*/
</code></pre>
<h2>Functions</h2>
<pre><code>public boolean function myFunc(required any arg) {
return true;
}</code></pre>
<h2>Full example</h2>
<pre><code>component accessors="true" {
property type="string" name="prop1" default="";
property string prop2;
function init(){
this.prop3 = 12;
return this;
}
/**
* @hint Annotations supported
* @foo.hint
*/
public any function build( required foo, color="blue", boolean bar=true ){
arguments.foo = {
'name' : "something",
test = true
}
var foobar = function( required string baz, x=true, y=false ){
return "bar!";
};
return foo;
}
}
</code></pre>

View File

@ -25,6 +25,7 @@
"c": "clike",
"csharp": "clike",
"cpp": "c",
"cfscript": "clike",
"chaiscript": [
"clike",
"cpp"
@ -173,6 +174,7 @@
"oscript": "bsl",
"cs": "csharp",
"dotnet": "csharp",
"cfc": "cfscript",
"coffee": "coffeescript",
"conc": "concurnas",
"jinja2": "django",

File diff suppressed because one or more lines are too long

View File

@ -47,6 +47,8 @@
"cs": "C#",
"dotnet": "C#",
"cpp": "C++",
"cfscript": "CFScript",
"cfc": "CFScript",
"cil": "CIL",
"cmake": "CMake",
"coffee": "CoffeeScript",

View File

@ -1 +1 @@
!function(){if("undefined"!=typeof self&&self.Prism&&self.document)if(Prism.plugins.toolbar){var r={none:"Plain text",html:"HTML",xml:"XML",svg:"SVG",mathml:"MathML",ssml:"SSML",rss:"RSS",css:"CSS",clike:"C-like",js:"JavaScript",abap:"ABAP",abnf:"ABNF",al:"AL",antlr4:"ANTLR4",g4:"ANTLR4",apacheconf:"Apache Configuration",apl:"APL",aql:"AQL",arff:"ARFF",asciidoc:"AsciiDoc",adoc:"AsciiDoc",aspnet:"ASP.NET (C#)",asm6502:"6502 Assembly",autohotkey:"AutoHotkey",autoit:"AutoIt",basic:"BASIC",bbcode:"BBcode",bnf:"BNF",rbnf:"RBNF",bsl:"BSL (1C:Enterprise)",oscript:"OneScript",csharp:"C#",cs:"C#",dotnet:"C#",cpp:"C++",cil:"CIL",cmake:"CMake",coffee:"CoffeeScript",conc:"Concurnas",csp:"Content-Security-Policy","css-extras":"CSS Extras",dataweave:"DataWeave",dax:"DAX",django:"Django/Jinja2",jinja2:"Django/Jinja2","dns-zone-file":"DNS zone file","dns-zone":"DNS zone file",dockerfile:"Docker",dot:"DOT (Graphviz)",gv:"DOT (Graphviz)",ebnf:"EBNF",editorconfig:"EditorConfig",ejs:"EJS",etlua:"Embedded Lua templating",erb:"ERB","excel-formula":"Excel Formula",xlsx:"Excel Formula",xls:"Excel Formula",fsharp:"F#","firestore-security-rules":"Firestore security rules",ftl:"FreeMarker Template Language",gml:"GameMaker Language",gamemakerlanguage:"GameMaker Language",gcode:"G-code",gdscript:"GDScript",gedcom:"GEDCOM",glsl:"GLSL",graphql:"GraphQL",hs:"Haskell",hcl:"HCL",hlsl:"HLSL",http:"HTTP",hpkp:"HTTP Public-Key-Pins",hsts:"HTTP Strict-Transport-Security",ichigojam:"IchigoJam",ignore:".ignore",gitignore:".gitignore",hgignore:".hgignore",npmignore:".npmignore",inform7:"Inform 7",javadoc:"JavaDoc",javadoclike:"JavaDoc-like",javastacktrace:"Java stack trace",jq:"JQ",jsdoc:"JSDoc","js-extras":"JS Extras",json:"JSON",webmanifest:"Web App Manifest",json5:"JSON5",jsonp:"JSONP",jsstacktrace:"JS stack trace","js-templates":"JS Templates",kts:"Kotlin Script",kt:"Kotlin",kumir:"KuMir (КуМир)",kum:"KuMir (КуМир)",latex:"LaTeX",tex:"TeX",context:"ConTeXt",lilypond:"LilyPond",ly:"LilyPond",emacs:"Lisp",elisp:"Lisp","emacs-lisp":"Lisp",llvm:"LLVM IR",lolcode:"LOLCODE",md:"Markdown","markup-templating":"Markup templating",matlab:"MATLAB",mel:"MEL",mongodb:"MongoDB",moon:"MoonScript",n1ql:"N1QL",n4js:"N4JS",n4jsd:"N4JS","nand2tetris-hdl":"Nand To Tetris HDL",naniscript:"Naninovel Script",nani:"Naninovel Script",nasm:"NASM",neon:"NEON",nginx:"nginx",nsis:"NSIS",objectivec:"Objective-C",objc:"Objective-C",ocaml:"OCaml",opencl:"OpenCL",parigp:"PARI/GP",objectpascal:"Object Pascal",psl:"PATROL Scripting Language",pcaxis:"PC-Axis",px:"PC-Axis",peoplecode:"PeopleCode",pcode:"PeopleCode",php:"PHP",phpdoc:"PHPDoc","php-extras":"PHP Extras",plsql:"PL/SQL",powerquery:"PowerQuery",pq:"PowerQuery",mscript:"PowerQuery",powershell:"PowerShell",promql:"PromQL",properties:".properties",protobuf:"Protocol Buffers",purebasic:"PureBasic",pbfasm:"PureBasic",purs:"PureScript",py:"Python",q:"Q (kdb+ database)",qml:"QML",rkt:"Racket",jsx:"React JSX",tsx:"React TSX",renpy:"Ren'py",rpy:"Ren'py",rest:"reST (reStructuredText)",robotframework:"Robot Framework",robot:"Robot Framework",rb:"Ruby",sas:"SAS",sass:"Sass (Sass)",scss:"Sass (Scss)","shell-session":"Shell session","sh-session":"Shell session",shellsession:"Shell session",sml:"SML",smlnj:"SML/NJ",solidity:"Solidity (Ethereum)",sol:"Solidity (Ethereum)","solution-file":"Solution file",sln:"Solution file",soy:"Soy (Closure Template)",sparql:"SPARQL",rq:"SPARQL","splunk-spl":"Splunk SPL",sqf:"SQF: Status Quo Function (Arma 3)",sql:"SQL",iecst:"Structured Text (IEC 61131-3)","t4-templating":"T4 templating","t4-cs":"T4 Text Templates (C#)",t4:"T4 Text Templates (C#)","t4-vb":"T4 Text Templates (VB)",tap:"TAP",tt2:"Template Toolkit 2",toml:"TOML",trig:"TriG",ts:"TypeScript",tsconfig:"TSConfig",uscript:"UnrealScript",uc:"UnrealScript",uri:"URI",url:"URL",vbnet:"VB.Net",vhdl:"VHDL",vim:"vim","visual-basic":"Visual Basic",vba:"VBA",vb:"Visual Basic",wasm:"WebAssembly",wiki:"Wiki markup",xeoracube:"XeoraCube","xml-doc":"XML doc (.net)",xojo:"Xojo (REALbasic)",xquery:"XQuery",yaml:"YAML",yml:"YAML",yang:"YANG"};Prism.plugins.toolbar.registerButton("show-language",function(e){var a=e.element.parentNode;if(a&&/pre/i.test(a.nodeName)){var t,s=a.getAttribute("data-language")||r[e.language]||((t=e.language)?(t.substring(0,1).toUpperCase()+t.substring(1)).replace(/s(?=cript)/,"S"):t);if(s){var o=document.createElement("span");return o.textContent=s,o}}})}else console.warn("Show Languages plugin loaded before Toolbar plugin.")}();
!function(){if("undefined"!=typeof self&&self.Prism&&self.document)if(Prism.plugins.toolbar){var r={none:"Plain text",html:"HTML",xml:"XML",svg:"SVG",mathml:"MathML",ssml:"SSML",rss:"RSS",css:"CSS",clike:"C-like",js:"JavaScript",abap:"ABAP",abnf:"ABNF",al:"AL",antlr4:"ANTLR4",g4:"ANTLR4",apacheconf:"Apache Configuration",apl:"APL",aql:"AQL",arff:"ARFF",asciidoc:"AsciiDoc",adoc:"AsciiDoc",aspnet:"ASP.NET (C#)",asm6502:"6502 Assembly",autohotkey:"AutoHotkey",autoit:"AutoIt",basic:"BASIC",bbcode:"BBcode",bnf:"BNF",rbnf:"RBNF",bsl:"BSL (1C:Enterprise)",oscript:"OneScript",csharp:"C#",cs:"C#",dotnet:"C#",cpp:"C++",cfscript:"CFScript",cfc:"CFScript",cil:"CIL",cmake:"CMake",coffee:"CoffeeScript",conc:"Concurnas",csp:"Content-Security-Policy","css-extras":"CSS Extras",dataweave:"DataWeave",dax:"DAX",django:"Django/Jinja2",jinja2:"Django/Jinja2","dns-zone-file":"DNS zone file","dns-zone":"DNS zone file",dockerfile:"Docker",dot:"DOT (Graphviz)",gv:"DOT (Graphviz)",ebnf:"EBNF",editorconfig:"EditorConfig",ejs:"EJS",etlua:"Embedded Lua templating",erb:"ERB","excel-formula":"Excel Formula",xlsx:"Excel Formula",xls:"Excel Formula",fsharp:"F#","firestore-security-rules":"Firestore security rules",ftl:"FreeMarker Template Language",gml:"GameMaker Language",gamemakerlanguage:"GameMaker Language",gcode:"G-code",gdscript:"GDScript",gedcom:"GEDCOM",glsl:"GLSL",graphql:"GraphQL",hs:"Haskell",hcl:"HCL",hlsl:"HLSL",http:"HTTP",hpkp:"HTTP Public-Key-Pins",hsts:"HTTP Strict-Transport-Security",ichigojam:"IchigoJam",ignore:".ignore",gitignore:".gitignore",hgignore:".hgignore",npmignore:".npmignore",inform7:"Inform 7",javadoc:"JavaDoc",javadoclike:"JavaDoc-like",javastacktrace:"Java stack trace",jq:"JQ",jsdoc:"JSDoc","js-extras":"JS Extras",json:"JSON",webmanifest:"Web App Manifest",json5:"JSON5",jsonp:"JSONP",jsstacktrace:"JS stack trace","js-templates":"JS Templates",kts:"Kotlin Script",kt:"Kotlin",kumir:"KuMir (КуМир)",kum:"KuMir (КуМир)",latex:"LaTeX",tex:"TeX",context:"ConTeXt",lilypond:"LilyPond",ly:"LilyPond",emacs:"Lisp",elisp:"Lisp","emacs-lisp":"Lisp",llvm:"LLVM IR",lolcode:"LOLCODE",md:"Markdown","markup-templating":"Markup templating",matlab:"MATLAB",mel:"MEL",mongodb:"MongoDB",moon:"MoonScript",n1ql:"N1QL",n4js:"N4JS",n4jsd:"N4JS","nand2tetris-hdl":"Nand To Tetris HDL",naniscript:"Naninovel Script",nani:"Naninovel Script",nasm:"NASM",neon:"NEON",nginx:"nginx",nsis:"NSIS",objectivec:"Objective-C",objc:"Objective-C",ocaml:"OCaml",opencl:"OpenCL",parigp:"PARI/GP",objectpascal:"Object Pascal",psl:"PATROL Scripting Language",pcaxis:"PC-Axis",px:"PC-Axis",peoplecode:"PeopleCode",pcode:"PeopleCode",php:"PHP",phpdoc:"PHPDoc","php-extras":"PHP Extras",plsql:"PL/SQL",powerquery:"PowerQuery",pq:"PowerQuery",mscript:"PowerQuery",powershell:"PowerShell",promql:"PromQL",properties:".properties",protobuf:"Protocol Buffers",purebasic:"PureBasic",pbfasm:"PureBasic",purs:"PureScript",py:"Python",q:"Q (kdb+ database)",qml:"QML",rkt:"Racket",jsx:"React JSX",tsx:"React TSX",renpy:"Ren'py",rpy:"Ren'py",rest:"reST (reStructuredText)",robotframework:"Robot Framework",robot:"Robot Framework",rb:"Ruby",sas:"SAS",sass:"Sass (Sass)",scss:"Sass (Scss)","shell-session":"Shell session","sh-session":"Shell session",shellsession:"Shell session",sml:"SML",smlnj:"SML/NJ",solidity:"Solidity (Ethereum)",sol:"Solidity (Ethereum)","solution-file":"Solution file",sln:"Solution file",soy:"Soy (Closure Template)",sparql:"SPARQL",rq:"SPARQL","splunk-spl":"Splunk SPL",sqf:"SQF: Status Quo Function (Arma 3)",sql:"SQL",iecst:"Structured Text (IEC 61131-3)","t4-templating":"T4 templating","t4-cs":"T4 Text Templates (C#)",t4:"T4 Text Templates (C#)","t4-vb":"T4 Text Templates (VB)",tap:"TAP",tt2:"Template Toolkit 2",toml:"TOML",trig:"TriG",ts:"TypeScript",tsconfig:"TSConfig",uscript:"UnrealScript",uc:"UnrealScript",uri:"URI",url:"URL",vbnet:"VB.Net",vhdl:"VHDL",vim:"vim","visual-basic":"Visual Basic",vba:"VBA",vb:"Visual Basic",wasm:"WebAssembly",wiki:"Wiki markup",xeoracube:"XeoraCube","xml-doc":"XML doc (.net)",xojo:"Xojo (REALbasic)",xquery:"XQuery",yaml:"YAML",yml:"YAML",yang:"YANG"};Prism.plugins.toolbar.registerButton("show-language",function(e){var a=e.element.parentNode;if(a&&/pre/i.test(a.nodeName)){var t,s=a.getAttribute("data-language")||r[e.language]||((t=e.language)?(t.substring(0,1).toUpperCase()+t.substring(1)).replace(/s(?=cript)/,"S"):t);if(s){var o=document.createElement("span");return o.textContent=s,o}}})}else console.warn("Show Languages plugin loaded before Toolbar plugin.")}();

View File

@ -0,0 +1,23 @@
// foobar
/**/
/* foo
bar */
/**
* @product.hint
*/
----------------------------------------------------
[
["comment", "// foobar"],
["comment", ["/**/"]],
["comment", ["/* foo\r\nbar */"]],
["comment", [
"/**\r\n*", ["annotation", " @product.hint"],
"\r\n*/"
]]
]
----------------------------------------------------
Checks for single-line and multi-line comments along with annotation

View File

@ -0,0 +1,137 @@
foo = function ( ) {}
foo = function ( x, y) {}
{foo: function () {}}
fooBar = x => x
fooBar = ( x, y ) => x
ಠ_ಠ = () => {}
d = function Example({ props: { a: _A, b} } = Props) {}
f = function (x = fun()) {}
l = (x = fun(), y) => {}
a = function () {}, b = () => {}
----------------------------------------------------
[
["function-variable", "foo"],
["operator", "="],
["keyword", "function"],
["punctuation", "("],
["punctuation", ")"],
["punctuation", "{"],
["punctuation", "}"],
["function-variable", "foo"],
["operator", "="],
["keyword", "function"],
["punctuation", "("],
" x",
["punctuation", ","],
" y",
["punctuation", ")"],
["punctuation", "{"],
["punctuation", "}"],
["punctuation", "{"],
["function-variable", "foo"],
["operator", ":"],
["keyword", "function"],
["punctuation", "("],
["punctuation", ")"],
["punctuation", "{"],
["punctuation", "}"],
["punctuation", "}"],
["function-variable", "fooBar"],
["operator", "="],
" x ",
["operator", "=>"],
" x\r\n",
["function-variable", "fooBar"],
["operator", "="],
["punctuation", "("],
" x",
["punctuation", ","],
" y ",
["punctuation", ")"],
["operator", "=>"],
" x\r\n",
["function-variable", "ಠ_ಠ"],
["operator", "="],
["punctuation", "("],
["punctuation", ")"],
["operator", "=>"],
["punctuation", "{"],
["punctuation", "}"],
["function-variable", "d"],
["operator", "="],
["keyword", "function"],
["function", "Example"],
["punctuation", "("],
["punctuation", "{"],
" props",
["operator", ":"],
["punctuation", "{"],
" a",
["operator", ":"],
" _A",
["punctuation", ","],
" b",
["punctuation", "}"],
["punctuation", "}"],
["operator", "="],
" Props",
["punctuation", ")"],
["punctuation", "{"],
["punctuation", "}"],
["function-variable", "f"],
["operator", "="],
["keyword", "function"],
["punctuation", "("],
"x ",
["operator", "="],
["function", "fun"],
["punctuation", "("],
["punctuation", ")"],
["punctuation", ")"],
["punctuation", "{"],
["punctuation", "}"],
["function-variable", "l"],
["operator", "="],
["punctuation", "("],
"x ",
["operator", "="],
["function", "fun"],
["punctuation", "("],
["punctuation", ")"],
["punctuation", ","],
" y",
["punctuation", ")"],
["operator", "=>"],
["punctuation", "{"],
["punctuation", "}"],
["function-variable", "a"],
["operator", "="],
["keyword", "function"],
["punctuation", "("],
["punctuation", ")"],
["punctuation", "{"],
["punctuation", "}"],
["punctuation", ","],
["function-variable", "b"],
["operator", "="],
["punctuation", "("],
["punctuation", ")"],
["operator", "=>"],
["punctuation", "{"],
["punctuation", "}"]
]
----------------------------------------------------
Checks for variables obviously containing functions.

View File

@ -0,0 +1,71 @@
abstract
break
catch
component
continue
default
do
else
extends
final
finally
for
function
if
in
include
package
private
property
public
remote
required
rethrow
return
static
switch
throw
try
var
while
xml
----------------------------------------------------
[
["keyword", "abstract"],
["keyword", "break"],
["keyword", "catch"],
["keyword", "component"],
["keyword", "continue"],
["keyword", "default"],
["keyword", "do"],
["keyword", "else"],
["keyword", "extends"],
["keyword", "final"],
["keyword", "finally"],
["keyword", "for"],
["keyword", "function"],
["keyword", "if"],
["keyword", "in"],
["keyword", "include"],
["keyword", "package"],
["keyword", "private"],
["keyword", "property"],
["keyword", "public"],
["keyword", "remote"],
["keyword", "required"],
["keyword", "rethrow"],
["keyword", "return"],
["keyword", "static"],
["keyword", "switch"],
["keyword", "throw"],
["keyword", "try"],
["keyword", "var"],
["keyword", "while"],
["keyword", "xml"]
]
----------------------------------------------------
Checks for all keywords.

View File

@ -0,0 +1,71 @@
+ ++ +=
- -- -=
! !=
< <=
> >=
= ==
=== !==
& && &=
| ||
: ::
? ?. ?:
^ ^=
* *=
/ /=
% %=
and
contains
eq
equal
eqv
gt
gte
imp
is
lt
lte
mod
not
or
xor
----------------------------------------------------
[
["operator", "+"], ["operator", "++"], ["operator", "+="],
["operator", "-"], ["operator", "--"], ["operator", "-="],
["operator", "!"], ["operator", "!="],
["operator", "<"], ["operator", "<="],
["operator", ">"], ["operator", ">="],
["operator", "="], ["operator", "=="],
["operator", "==="], ["operator", "!=="],
["operator", "&"], ["operator", "&&"], ["operator", "&="],
["operator", "|"], ["operator", "||"],
["operator", ":"], ["operator", "::"],
["operator", "?"], ["operator", "?."], ["operator", "?:"],
["operator", "^"], ["operator", "^="],
["operator", "*"], ["operator", "*="],
["operator", "/"], ["operator", "/="],
["operator", "%"], ["operator", "%="],
["operator", "and"],
["operator", "contains"],
["operator", "eq"],
["operator", "equal"],
["operator", "eqv"],
["operator", "gt"],
["operator", "gte"],
["operator", "imp"],
["operator", "is"],
["operator", "lt"],
["operator", "lte"],
["operator", "mod"],
["operator", "not"],
["operator", "or"],
["operator", "xor"]
]
----------------------------------------------------
Checks for all operators.

View File

@ -0,0 +1,29 @@
application
arguments
cgi
client
cookie
local
session
super
this
variables
----------------------------------------------------
[
["scope", "application"],
["scope", "arguments"],
["scope", "cgi"],
["scope", "client"],
["scope", "cookie"],
["scope", "local"],
["scope", "session"],
["scope", "super"],
["scope", "this"],
["scope", "variables"]
]
----------------------------------------------------
Checks for all scopes.

View File

@ -0,0 +1,35 @@
any
array
binary
boolean
date
guid
numeric
query
string
struct
uuid
void
xml
----------------------------------------------------
[
["type", "any"],
["type", "array"],
["type", "binary"],
["type", "boolean"],
["type", "date"],
["type", "guid"],
["type", "numeric"],
["type", "query"],
["type", "string"],
["type", "struct"],
["type", "uuid"],
["type", "void"],
["keyword", "xml"]
]
----------------------------------------------------
Checks for all types.