Add support for filetype-specific indentation settings
[geany-mirror.git] / data / filetypes.perl
blobd5403ba4323abd5e31df1423dcf3e0c5203e9a01
1 # For complete documentation of this file, please see Geany's main documentation
2 [styling]
3 # foreground;background;bold;italic
4 default=0x000000;0xffffff;false;false
5 error=0xff0000;0xffffff;false;false
6 commentline=0xd00000;0xffffff;false;false
7 number=0x007f00;0xffffff;false;false
8 word=0x111199;0xffffff;true;false
9 string=0xff901e;0xffffff;false;false
10 character=0xff901e;0xffffff;false;false
11 preprocessor=0x007f7f;0xffffff;false;false
12 operator=0x301010;0xffffff;false;false
13 identifier=0x000000;0xffffff;false;false
14 scalar=0x7f0000;0xffffff;true;false
15 pod=0x035650;0xffffff;false;true
16 regex=0x105090;0xffffff;false;false
17 array=0x105090;0xffffff;false;false
18 hash=0x105090;0xffffff;false;false
19 symboltable=0x105090;0xffffff;false;false
20 backticks=0x000000;0xe0c0e0;false;false
21 pod_verbatim=0x004000;0xc0ffc0;false;false
22 reg_subst=0x000000;0xf0e080;false;false
23 datasection=0x600000;0xfff0d8;false;false
24 here_delim=0x000000;0xddd0dd;false;false
25 here_q=0x7f007f;0xddd0dd;false;false
26 here_qq=0x7f007f;0xddd0dd;true;false
27 here_qx=0x7f007f;0xddd0dd;false;true
28 string_q=0x7f007f;0xffffff;false;false
29 string_qq=0xff901e;0xffffff;false;false
30 string_qx=0x000000;0xe0c0e0;false;false
31 string_qr=0x105090;0xffffff;false;false
32 string_qw=0x105090;0xffffff;false;false
33 variable_indexer=0x000000;0xffffff;false;false
34 # not used
35 punctuation=0x000000;0xffffff;false;false
36 # obsolete: replaced by qq, qx, qr, qw
37 longquote=0x000000;0xffffff;false;false
38 sub_prototype=0x301010;0xffffff;false;true
39 format_ident=0xc000c0;0xffffff;true;false
40 format=0xc000c0;0xffffff;false;false
42 [keywords]
43 primary=NULL __FILE__ __LINE__ __PACKAGE__ __DATA__ __END__ AUTOLOAD BEGIN CORE DESTROY END EQ GE GT INIT LE LT NE CHECK abs accept alarm and atan2 bind binmode bless caller chdir chmod chomp chop chown chr chroot close closedir cmp connect continue cos crypt dbmclose dbmopen defined delete die do dump each else elsif endgrent endhostent endnetent endprotoent endpwent endservent eof eq eval exec exists exit exp fcntl fileno flock for foreach fork format formline ge getc getgrent getgrgid getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr getnetbyname getnetent getpeername getpgrp getppid getpriority getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid getservbyname getservbyport getservent getsockname getsockopt glob gmtime goto grep gt hex if index int ioctl join keys kill last lc lcfirst le length link listen local localtime lock log lstat lt m map mkdir msgctl msgget msgrcv msgsnd my ne next no not oct open opendir or ord our pack package pipe pop pos print printf prototype push q qq qr quotemeta qu qw qx rand read readdir readline readlink readpipe recv redo ref rename require reset return reverse rewinddir rindex rmdir s scalar seek seekdir select semctl semget semop send setgrent sethostent setnetent setpgrp setpriority setprotoent setpwent setservent setsockopt shift shmctl shmget shmread shmwrite shutdown sin sleep socket socketpair sort splice split sprintf sqrt srand stat study sub substr symlink syscall sysopen sysread sysseek system syswrite tell telldir tie tied time times tr truncate uc ucfirst umask undef unless unlink unpack unshift untie until use utime values vec wait waitpid wantarray warn while write x xor y
45 [lexer_properties]
46 styling.within.preprocessor=1
48 [settings]
49 # default extension used when saving files
50 extension=pl
52 # the following characters are these which a "word" can contains, see documentation
53 #wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
55 # single comments, like # in this file
56 comment_single=#
57 # multiline comments
58 #comment_open==begin
59 #comment_close==cut
61 # set to false if a comment character/string should start at column 0 of a line, true uses any
62 # indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
63 #command_example();
64 # setting to false would generate this
65 # command_example();
66 # This setting works only for single line comments
67 comment_use_indent=true
69 # context action command (please see Geany's main documentation for details)
70 context_action_cmd=
72 [indentation]
73 #width=4
74 # 0 is spaces, 1 is tabs, 2 is tab & spaces
75 #type=1
77 [build_settings]
78 # %f will be replaced by the complete filename
79 # %e will be replaced by the filename without extension
80 # (use only one of it at one time)
82 compiler=perl -cw "%f"
84 # alternatively use perlcc
85 #compiler=perlcc -o "%e" "%f"
87 run_cmd=perl "%f"
89 # Parse syntax check error messages and warnings, examples:
90 # syntax error at test.pl line 7, near "{
91 # Unknown warnings category '1' at test.pl line 13
92 error_regex=.+ at (.+) line ([0-9]+).*