filetypes.c 2.41 KB
Newer Older
1
# For complete documentation of this file, please see Geany's main documentation
Enrico Tröger's avatar
Enrico Tröger committed
2
[styling]
3
# foreground;background;bold;italic
4 5 6 7 8
default=default
comment=comment
commentline=comment
commentdoc=commentdoc
number=number
9 10
word=keyword
word2=keyword2
11 12
string=string
character=string
13
uuid=extra
14 15 16 17
preprocessor=preprocessor
operator=operator
identifier=default
stringeol=stringeol
18
# @"verbatim" and """multi-line verbatim"""
19
verbatim=extra
20
# (/regex/)
21
regex=extra
22 23 24 25
commentlinedoc=commentdoc,bold
commentdockeyword=commentdoc,bold,italic
commentdockeyworderror=commentdoc
globalclass=type
Enrico Tröger's avatar
Enrico Tröger committed
26

Enrico Tröger's avatar
Enrico Tröger committed
27
[keywords]
Enrico Tröger's avatar
Enrico Tröger committed
28
# all items must be in one line
29
primary=asm auto break case char const continue default do double else enum extern float for goto if inline int long register restrict return short signed sizeof static struct switch typedef union unsigned void volatile while FALSE NULL TRUE
30
secondary=
31 32
# these are some doxygen keywords (incomplete)
docComment=attention author brief bug class code date def enum example exception file fn namespace note param remarks return see since struct throw todo typedef var version warning union
Enrico Tröger's avatar
Enrico Tröger committed
33

34 35
[lexer_properties]
styling.within.preprocessor=1
36
lexer.cpp.track.preprocessor=0
37 38 39 40 41
preprocessor.symbol.$(file.patterns.cpp)=#
preprocessor.start.$(file.patterns.cpp)=if ifdef ifndef
preprocessor.middle.$(file.patterns.cpp)=else elif
preprocessor.end.$(file.patterns.cpp)=endif

42
[settings]
43
# default extension used when saving files
44
extension=c
45

46
# the following characters are these which a "word" can contains, see documentation
47
#wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
48

49 50 51 52 53
# single comments, like # in this file
comment_single=//
# multiline comments
comment_open=/*
comment_close=*/
54

Enrico Tröger's avatar
Enrico Tröger committed
55
# set to false if a comment character/string should start at column 0 of a line, true uses any
56
# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
57 58 59 60 61 62
	#command_example();
# setting to false would generate this
#	command_example();
# This setting works only for single line comments
comment_use_indent=true

63 64 65
# context action command (please see Geany's main documentation for details)
context_action_cmd=

66 67 68 69 70
[indentation]
#width=4
# 0 is spaces, 1 is tabs, 2 is tab & spaces
#type=1

71 72 73 74
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
# (use only one of it at one time)
75
compiler=gcc -Wall -c "%f"
76
linker=gcc -Wall -o "%e" "%f"
77
run_cmd="./%e"
78 79