File: lua.properties

package info (click to toggle)
anjuta 1.2.2-9
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 24,732 kB
  • ctags: 12,398
  • sloc: ansic: 82,587; cpp: 35,104; sh: 8,591; xml: 7,210; makefile: 981; python: 157
file content (108 lines) | stat: -rw-r--r-- 4,061 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# Anjuta internal configuration file

#----------------- WARNING ------------------------------------#
# Any modification in this file without knowing proper internal
# working of Anjuta may lead to instabilites.
#----------------- WARNING ------------------------------------#

# Anjuta uses this file for internal operations,
# therefore this file should never be modified.
# Only Anjuta developers will be tampering with this file. 

# Any modification if needed should be approved by the Anjuta
# developers, so that the source code is also changed (if needed)
# and the changes incorporated in the next release of Anjuta.

##################################################
# Filters to be used in file open/close/save etc #
##################################################
filter.lua=LUA (.lua)|*.lua|

############################################
# File patterns defined for all file types #
############################################
file.patterns.lua=*.lua

####################################################
# Lexer to be used for corresponding file patterns #
####################################################
lexer.$(file.patterns.lua)=lua

################################################
# File type corresponding to the file patterns #
################################################
filetype.$(file.patterns.lua)=lua

####################
# Keywords for lua #
####################
keywordclass.lua=and do else elseif end function if local nil not or \
repeat return then until while
keywords.$(file.patterns.lua)=$(keywordclass.lua)

#### Lua 4.0/4.1
# Basic Functions
keywords2.$(file.patterns.lua)=_ALERT _ERRORMESSAGE _INPUT _PROMPT _OUTPUT \
_STDERR _STDIN _STDOUT _VERSION assert call collectgarbage dofile dostring \
error foreach foreachi gcinfo getn globals loadfile loadstring newtype print \
rawget rawset require sort tonumber tostring tinsert tremove type unpack

# String Manipulation & Mathematical Functions
keywords3.$(file.patterns.lua)=abs acos asin atan atan2 ceil cos deg exp \
floor format frexp gsub ldexp log log10 max min mod rad random randomseed \
sin sqrt strbyte strchar strfind strlen strlower strrep strsub strupper tan

# Input and Output Facilities & System Facilities
keywords4.$(file.patterns.lua)=openfile closefile readfrom writeto appendto \
remove rename flush seek tmpfile tmpname read write \
clock date difftime execute exit getenv setlocale time

file.interpreted.$(file.patterns.lua)=1

####################
# Statements style #
####################
statement.indent.$(file.patterns.lua)=5 repeat do then function else
statement.end.$(file.patterns.lua)=
statement.lookback.$(file.patterns.lua)=20
block.start.$(file.patterns.lua)=5 repeat do then function else
block.end.$(file.patterns.lua)=5 end until else elseif
indent.maintain.$(file.patterns.lua)=1
comment.block.lua=--~
comment.block.at.line.start.lua=1

##############
# Lua styles #
##############

style.lua.0=fore:#808080
style.lua.1=fore:#007F00,$(font.monospace),italics
style.lua.2=fore:#007F00,$(font.monospace)
style.lua.3=fore:#7F7F7F
style.lua.4=fore:#007F7F
style.lua.5=fore:#00007F,bold
style.lua.6=fore:#7F007F,$(font.monospace)
style.lua.7=fore:#7F007F,$(font.monospace)
style.lua.8=fore:#007F7F
style.lua.9=fore:#7F7F00
style.lua.10=bold
style.lua.11=
style.lua.12=fore:#000000,$(font.monospace),back:#E0C0E0,eolfilled
# Other keywords (bozo test colors :-)
style.lua.13=$(style.lua.5),back:#D0FFD0
style.lua.14=$(style.lua.5),back:#D0D0FF
style.lua.15=$(style.lua.5),back:#FFD0D0
style.lua.16=$(style.lua.5),back:#FFD0FF
style.lua.17=$(style.lua.5),back:#FFFFD0
# Braces are only matched in operator style
braces.lua.style=10


######################################################
# Default Commands for handling different file types #
######################################################

command.compile.file.$(file.patterns.lua)=luac -o "$(current.file.name).luc" "$(current.file.name.ext)"
command.build.file.$(file.patterns.lua)=
command.execute.file.$(file.patterns.lua)=lua "$(current.full.filename.ext)"