fork
This commit is contained in:
16
langs/ada/README.md
Normal file
16
langs/ada/README.md
Normal file
@ -0,0 +1,16 @@
|
||||
crayon-lang-ada
|
||||
===============
|
||||
|
||||
some modifications for the crayon syntax highlighter.
|
||||
|
||||
Installation:
|
||||
-------------
|
||||
|
||||
1. Search for the folder langs inside your crayon installation
|
||||
2. Create a folder named ada
|
||||
3. copy **ALL** txt files into that folder
|
||||
4. DONE
|
||||
|
||||
|
||||
Aram (crayons creator) has added it to the crayon repo here on github. So you can simply pull the current repo to get it.
|
||||
https://github.com/aramkocharyan/crayon-syntax-highlighter
|
22
langs/ada/ada.txt
Normal file
22
langs/ada/ada.txt
Normal file
@ -0,0 +1,22 @@
|
||||
### ADA LANGUAGE ###
|
||||
|
||||
# ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
|
||||
|
||||
NAME ADA
|
||||
VERSION 0.0.2
|
||||
|
||||
COMMENT (--.*?$)
|
||||
STRING (?default)
|
||||
|
||||
NOTATION \@[\w-]+
|
||||
STATEMENT \b(?alt:statement.txt)\b
|
||||
RESERVED (?default)|\b(?alt:reserved.txt)\b
|
||||
TYPE (?default)|\b(?alt:type.txt)\b
|
||||
|
||||
ENTITY (?default)|\b[a-z_]\w+\s*\|\s*[a-z_]\w+\b\s+(?=\b[a-z_]\w+\b)
|
||||
VARIABLE (?default)
|
||||
GENERIC:ENTITY <\w+>
|
||||
IDENTIFIER (?default)
|
||||
CONSTANT (?default)
|
||||
OPERATOR \b(?alt:operator.txt)\b
|
||||
SYMBOL (?default)
|
32
langs/ada/operator.txt
Normal file
32
langs/ada/operator.txt
Normal file
@ -0,0 +1,32 @@
|
||||
# Grouped operators
|
||||
=>
|
||||
..
|
||||
**
|
||||
:=
|
||||
/=
|
||||
>=
|
||||
<=
|
||||
<<
|
||||
>>
|
||||
<>
|
||||
|
||||
# Single operators
|
||||
&
|
||||
'
|
||||
(
|
||||
)
|
||||
*
|
||||
+
|
||||
,
|
||||
-
|
||||
.
|
||||
/
|
||||
:
|
||||
;
|
||||
<
|
||||
=
|
||||
>
|
||||
|
|
||||
|
||||
# Others
|
||||
"
|
73
langs/ada/reserved.txt
Normal file
73
langs/ada/reserved.txt
Normal file
@ -0,0 +1,73 @@
|
||||
abort
|
||||
abs
|
||||
abstract
|
||||
accept
|
||||
access
|
||||
aliased
|
||||
all
|
||||
and
|
||||
array
|
||||
at
|
||||
begin
|
||||
body
|
||||
case
|
||||
constant
|
||||
declare
|
||||
delay
|
||||
delta
|
||||
digits
|
||||
do
|
||||
else
|
||||
elsif
|
||||
end
|
||||
entry
|
||||
exception
|
||||
exit
|
||||
for
|
||||
function
|
||||
generic
|
||||
goto
|
||||
if
|
||||
in
|
||||
interface
|
||||
is
|
||||
limited
|
||||
loop
|
||||
mod
|
||||
new
|
||||
not
|
||||
null
|
||||
of
|
||||
or
|
||||
others
|
||||
out
|
||||
overriding
|
||||
package
|
||||
pragma
|
||||
private
|
||||
procedure
|
||||
protected
|
||||
raise
|
||||
range
|
||||
record
|
||||
rem
|
||||
renames
|
||||
requeue
|
||||
return
|
||||
reverse
|
||||
select
|
||||
separate
|
||||
some
|
||||
subtype
|
||||
synchronized
|
||||
tagged
|
||||
task
|
||||
terminate
|
||||
then
|
||||
type
|
||||
until
|
||||
use
|
||||
when
|
||||
while
|
||||
with
|
||||
xor
|
26
langs/ada/statement.txt
Normal file
26
langs/ada/statement.txt
Normal file
@ -0,0 +1,26 @@
|
||||
begin
|
||||
continue
|
||||
switch
|
||||
break
|
||||
result
|
||||
finally
|
||||
raise
|
||||
while
|
||||
then
|
||||
case
|
||||
else
|
||||
goto
|
||||
and
|
||||
for
|
||||
try
|
||||
xor
|
||||
not
|
||||
end
|
||||
as
|
||||
do
|
||||
if
|
||||
or
|
||||
in
|
||||
is
|
||||
to
|
||||
downto
|
6
langs/ada/type.txt
Normal file
6
langs/ada/type.txt
Normal file
@ -0,0 +1,6 @@
|
||||
Integer
|
||||
Float
|
||||
Duration
|
||||
Character
|
||||
String
|
||||
Boolean
|
Reference in New Issue
Block a user