This commit is contained in:
root
2019-08-30 19:30:19 +02:00
commit 6f2b105ca0
595 changed files with 78405 additions and 0 deletions

30
langs/default/default.txt Normal file
View 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

View File

@ -0,0 +1,10 @@
protected
abstract
property
private
global
public
static
native
const
final

View File

@ -0,0 +1,46 @@
# Grouped operators
=&
<<<
>>>
<<
>>
<<=
=>>
!==
!=
^=
*=
&=
%=
|=
/=
+=
-=
===
==
<>
->
<=
>=
++
--
&&
||
::
# Single operators
\#
+
-
*
/
%
=
&
|
^
~
!
<
>
:

View File

@ -0,0 +1,13 @@
implements
instanceof
declare
default
extends
typedef
parent
super
child
clone
self
this
new

View 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
View File

@ -0,0 +1,21 @@
~
`
!
@
#
$
%
(
)
_
{
}
[
]
|
\
:
;
,
.
?

29
langs/default/type.txt Normal file
View 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