From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- .../Export/SyntaxDefs/template-javascript.plist | 97 ++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 Runtime/Export/SyntaxDefs/template-javascript.plist (limited to 'Runtime/Export/SyntaxDefs/template-javascript.plist') diff --git a/Runtime/Export/SyntaxDefs/template-javascript.plist b/Runtime/Export/SyntaxDefs/template-javascript.plist new file mode 100644 index 0000000..344065a --- /dev/null +++ b/Runtime/Export/SyntaxDefs/template-javascript.plist @@ -0,0 +1,97 @@ + + + + + beginCommand + + endCommand + + beginInstruction + + endInstruction + + beginVariable + + endVariable + + firstString + " + secondString + ' + firstSingleLineComment + // + secondSingleLineComment + + beginFirstMultiLineComment + /* + endFirstMultiLineComment + */ + beginSecondMultiLineComment + + endSecondMultiLineComment + + functionDefinition + ^\s*function\s+.*\n?\s*{ + removeFromFunction + function + keywordsCaseSensitive + + recolourKeywordIfAlreadyColoured + + keywords + + if + else + for + in + while + do + continue + break + with + try + catch + switch + case + new + var + function + return + delete + true + false + void + throw + typeof + const + default + this + as + int + float + boolean + string + yield + private + protected + public + internal + import + String + System + UnityEngine + UnityEditor + ArrayList + Length + class + struct + enum + extends + static + + autocompleteWords + + REPLACE_SCRIPT_SYNTAX + + + -- cgit v1.1-26-g67d0