fork
This commit is contained in:
30
langs/default/default.txt
Normal file
30
langs/default/default.txt
Normal file
@ -0,0 +1,30 @@
|
||||
### DEFAULT LANGUAGE ###
|
||||
|
||||
# ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
|
||||
|
||||
NAME Default
|
||||
VERSION 1.8.1
|
||||
|
||||
COMMENT (/\*.*?\*/)|(//.*?$)
|
||||
PREPROCESSOR (#.*?$)
|
||||
STRING ((?<![^\\]\\)".*?(?<![^\\]\\)")|((?<![^\\]\\)'.*?(?<![^\\]\\)')
|
||||
|
||||
STATEMENT \b(?alt:statement.txt)\b
|
||||
RESERVED \b(?<![:\.])(?alt:reserved.txt)\b
|
||||
# \b(?<![:\.])(?alt:reserved.txt)(?![:\.])\b
|
||||
TYPE \b(?alt:type.txt)\b
|
||||
MODIFIER \b(?alt:modifier.txt)\b
|
||||
|
||||
# func() | func { | (Type) Var
|
||||
ENTITY (\b[a-z_]\w*\b(?=\s*\([^\)]*\)))|((?<!\.)(\b[a-z_]\w*\b)(?=[^}=|,.:;"'\)]*{))|(\b[a-z_]\w+\b\s+(?=\b[a-z_]\w+\b))
|
||||
# C variants only: String *
|
||||
POINTER_TYPE:ENTITY (\b[a-z_]\w*\s*\*)
|
||||
|
||||
VARIABLE [A-Za-z_]\w*(?=\s*(?alt:operator.txt)|(?alt:symbol.txt)|$)
|
||||
IDENTIFIER \b[A-Za-z_]\w*\b
|
||||
CONSTANT (?<!\w)[0-9][\.\w]*
|
||||
OPERATOR (?alt:operator.txt)
|
||||
SYMBOL &[^;]+;|(?alt:symbol.txt)
|
||||
|
||||
# |[^\w\s\d'"] in SYMBOL causes it to crash
|
||||
|
10
langs/default/modifier.txt
Normal file
10
langs/default/modifier.txt
Normal file
@ -0,0 +1,10 @@
|
||||
protected
|
||||
abstract
|
||||
property
|
||||
private
|
||||
global
|
||||
public
|
||||
static
|
||||
native
|
||||
const
|
||||
final
|
46
langs/default/operator.txt
Normal file
46
langs/default/operator.txt
Normal file
@ -0,0 +1,46 @@
|
||||
# Grouped operators
|
||||
=&
|
||||
<<<
|
||||
>>>
|
||||
<<
|
||||
>>
|
||||
<<=
|
||||
=>>
|
||||
!==
|
||||
!=
|
||||
^=
|
||||
*=
|
||||
&=
|
||||
%=
|
||||
|=
|
||||
/=
|
||||
+=
|
||||
-=
|
||||
===
|
||||
==
|
||||
<>
|
||||
->
|
||||
<=
|
||||
>=
|
||||
++
|
||||
--
|
||||
&&
|
||||
||
|
||||
::
|
||||
|
||||
# Single operators
|
||||
\#
|
||||
+
|
||||
-
|
||||
*
|
||||
/
|
||||
%
|
||||
=
|
||||
&
|
||||
|
|
||||
^
|
||||
~
|
||||
!
|
||||
<
|
||||
>
|
||||
:
|
13
langs/default/reserved.txt
Normal file
13
langs/default/reserved.txt
Normal file
@ -0,0 +1,13 @@
|
||||
implements
|
||||
instanceof
|
||||
declare
|
||||
default
|
||||
extends
|
||||
typedef
|
||||
parent
|
||||
super
|
||||
child
|
||||
clone
|
||||
self
|
||||
this
|
||||
new
|
38
langs/default/statement.txt
Normal file
38
langs/default/statement.txt
Normal file
@ -0,0 +1,38 @@
|
||||
enddeclare
|
||||
endforeach
|
||||
endswitch
|
||||
continue
|
||||
endwhile
|
||||
foreach
|
||||
finally
|
||||
default
|
||||
elseif
|
||||
endfor
|
||||
return
|
||||
switch
|
||||
assert
|
||||
break
|
||||
catch
|
||||
endif
|
||||
throw
|
||||
while
|
||||
then
|
||||
case
|
||||
else
|
||||
goto
|
||||
each
|
||||
and
|
||||
for
|
||||
try
|
||||
use
|
||||
xor
|
||||
and
|
||||
not
|
||||
end
|
||||
as
|
||||
do
|
||||
if
|
||||
or
|
||||
in
|
||||
is
|
||||
to
|
21
langs/default/symbol.txt
Normal file
21
langs/default/symbol.txt
Normal file
@ -0,0 +1,21 @@
|
||||
~
|
||||
`
|
||||
!
|
||||
@
|
||||
#
|
||||
$
|
||||
%
|
||||
(
|
||||
)
|
||||
_
|
||||
{
|
||||
}
|
||||
[
|
||||
]
|
||||
|
|
||||
\
|
||||
:
|
||||
;
|
||||
,
|
||||
.
|
||||
?
|
29
langs/default/type.txt
Normal file
29
langs/default/type.txt
Normal file
@ -0,0 +1,29 @@
|
||||
cfunction
|
||||
interface
|
||||
namespace
|
||||
function
|
||||
unsigned
|
||||
boolean
|
||||
integer
|
||||
package
|
||||
double
|
||||
struct
|
||||
string
|
||||
signed
|
||||
object
|
||||
class
|
||||
array
|
||||
float
|
||||
short
|
||||
false
|
||||
char
|
||||
long
|
||||
void
|
||||
word
|
||||
byte
|
||||
bool
|
||||
null
|
||||
true
|
||||
enum
|
||||
var
|
||||
int
|
Reference in New Issue
Block a user