# 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)"

