1# Define SciTE settings for Ada files.
2
3filter.ada=Ada (ads adb)|*.ads;*.adb|
4
5*filter.ada=$(filter.ada)
6
7file.patterns.ada=*.ads;*.adb
8
9*source.patterns.ada=$(file.patterns.ada);
10
11lexer.$(file.patterns.ada)=ada
12
13*language.ada=Ada|ads||
14
15#indent.size.$(file.patterns.ada)=3
16#use.tabs.$(file.patterns.ada)=0
17
18# Keyword except of operator keywords
19keywordclass.ada.main=abort abstract accept access aliased all array at begin body \
20case constant declare delay delta digits do else elsif end entry exception exit for \
21function generic goto if in is limited loop new null of others out package pragma \
22private procedure protected raise range record renames requeue return reverse \
23select separate subtype tagged task terminate then type until use when while with
24# Keywords for operators
25keywordclass.ada.operators=abs and mod not or rem xor
26
27keywordclass.ada=$(keywordclass.ada.main) $(keywordclass.ada.operators)
28
29keywords.$(file.patterns.ada)=$(keywordclass.ada)
30
31# Ada styles
32# Default
33style.ada.0=fore:#808080
34# Keyword
35style.ada.1=$(colour.keyword),bold
36# Identifiers
37style.ada.2=
38# Number
39style.ada.3=$(colour.number)
40# Operators (delimiters)
41style.ada.4=$(colour.operator),bold
42# Character
43style.ada.5=$(colour.char)
44# End of line where character is not closed
45style.ada.6=fore:#000000,$(font.monospace),back:#E0C0E0,eolfilled
46# String
47style.ada.7=$(colour.string)
48# End of line where string is not closed
49style.ada.8=fore:#000000,$(font.monospace),back:#E0C0E0,eolfilled
50# Label
51style.ada.9=fore:#7F0000
52# Comment
53style.ada.10=$(colour.code.comment.line),$(font.code.comment.line)
54# Illegal token
55style.ada.11=fore:#FF0000
56
57# Comments
58comment.block.ada=--~
59
60braces.ada.style=4
61
62statement.indent.$(file.patterns.ada)=1 begin declare else elsif exception for if is loop while
63statement.lookback.$(file.patterns.ada)=20
64block.start.$(file.patterns.ada)=10 then is
65block.end.$(file.patterns.ada)=10 end
66
67calltip.ada.word.characters=._$(chars.alpha)
68
69adagcc=gcc -c $(FileNameExt)
70
71command.compile.*.ads=$(adagcc)
72command.build.*.ads=gnatmake
73command.go.*.ads=$(FileName)
74
75command.compile.*.adb=$(adagcc)
76command.build.*.adb=gnatmake
77command.go.*.adb=$(FileName)
78