Revision | 7e31e0c60834acdc3176cedcf3b67e820a05516e (tree) |
---|---|
Time | 2022-09-05 16:45:26 |
Author | badcoff33 <none@none> |
Commiter | badcoff33 |
custom filetype for RH850 assembler works
@@ -1,2 +0,0 @@ | ||
1 | -Copy files from C:\Users\prepensm\AppData\Local\Programs\Geany\data/filedefs to this directory to overwrite them. To use the defaults, just delete the file in this directory. | |
2 | -For more information read the documentation (in C:\Users\prepensm\AppData\Local\Programs\Geany\share\doc\geany\html\index.html or visit https://www.geany.org/). | |
\ No newline at end of file |
@@ -1,13 +1,21 @@ | ||
1 | +# Copy all of the styles from ASM filetype definition file | |
2 | +[styling=ASM] | |
3 | +directive=keyword_1 | |
4 | + | |
1 | 5 | [keywords] |
2 | 6 | # all items must be in one line |
3 | 7 | # this is by default a very simple instruction set for the Renesas RH850 |
4 | -instructions=hlt lad spi add sub mul div jmp jez jgz jlz swap jsr ret pushac popac addst subst mulst divst lsa lds push pop cli ldi ink lia dek ldx | |
5 | -registers=r0 r1 r3 r4 r5 r6 r7 r8 r9 lp ep bp sp | |
6 | -directives=define include org list nolist page equivalent word text | |
8 | +instructions= | |
9 | +registers= | |
10 | +directives= | |
7 | 11 | |
8 | 12 | [settings] |
13 | + | |
14 | +# Set filetype name to setup syntax highlighting from ASM filetype. | |
15 | +lexer_filetype=ASM | |
16 | + | |
9 | 17 | # default extension used when saving files |
10 | -extension=850 | |
18 | +extension=s | |
11 | 19 | |
12 | 20 | # the following characters are these which a "word" can contains, see documentation |
13 | 21 | wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 |
@@ -0,0 +1,44 @@ | ||
1 | +# For complete documentation of this file, please see Geany's main documentation | |
2 | + | |
3 | +# Copy all of the styles from ASM filetype definition file | |
4 | +[styling=ASM] | |
5 | +directive=keyword_1 | |
6 | +[keywords] | |
7 | +# all items must be in one line | |
8 | +# this is by default a very simple instruction set for the Renesas RH850 | |
9 | +instructions= | |
10 | +registers=r0 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 sp zero pc eipc eipsw fepc fepsw psw eiic feic ctpc ctpsw ctbp eiwr fewr MCFG0 MCFG1 RBASE EBASE INTBP MCTL PID FPIPR TCSEL SCCFG SCBP HVCCFG HVCBP VCSEL VMPRT0 VMPRT1 VMPRT2 VMSCCTL VMSCTBL0 VMSCTBL1 VMSCTBL2 VMSCTBL3 HTCFG0 HTCTL MEA ASID MEI ISPR PMR ICSR INTCFG HTSCCTL HTSCTBL0 HTSCTBL1 HTSCTBL2 HTSCTBL3 HTSCTBL4 HTSCTBL5 HTSCTBL6 HTSCTBL7 BWERRL BWERRH BRERRL BRERRH ICTAGL ICTAGH ICDATL ICDATH DCTAGL DCTAGH DCDATL DCDATH ICCTRL DCCTRL ICCFG DCCFG ICERR DCERR MPLA0 MPUA0 MPAT0 MPLA1 MPUA1 MPAT1 MPLA2 MPUA2 MPAT2 MPLA3 MPUA3 MPAT3 MPLA4 MPUA4 MPAT4 MPLA5 MPUA5 MPAT5 MPLA6 MPUA6 MPAT6 MPLA7 MPUA7 MPAT7 MPLA8 MPUA8 MPAT8 MPLA9 MPUA9 MPAT9 MPLA10 MPUA10 MPAT10 MPLA11 MPUA11 MPAT11 MPLA12 MPUA12 MPAT12 MPLA13 MPUA13 MPAT13 MPLA14 MPUA14 MPAT14 MPLA15 MPUA15 MPAT15 fpsr fpepc fpst fpcc fpcfg fpec MPM MPRC MPBRGN MPTRGN MCA MCS MCC MCR MPPRT0 MPPRT1 MPPRT2 | |
11 | +directives=.file .weak .word .section .globl .macro | |
12 | + | |
13 | +[settings] | |
14 | +# Set filetype name to setup syntax highlighting from ASM filetype. | |
15 | +lexer_filetype=ASM | |
16 | +# default extension used when saving files | |
17 | +extension=850 | |
18 | + | |
19 | +# the following characters are these which a "word" can contains, see documentation | |
20 | +#wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 | |
21 | + | |
22 | +# single comments, like # in this file | |
23 | +comment_single=- | |
24 | +# multiline comments | |
25 | +#comment_open= | |
26 | +#comment_close= | |
27 | +comment_use_indent=true | |
28 | + | |
29 | +# context action command (please see Geany's main documentation for details) | |
30 | +context_action_cmd= | |
31 | + | |
32 | +#tag_parser=asm | |
33 | + | |
34 | +[indentation] | |
35 | +width=4 | |
36 | +# 0 is spaces, 1 is tabs, 2 is tab & spaces | |
37 | +type=0 | |
38 | + | |
39 | +[build_settings] | |
40 | +# %f will be replaced by the complete filename | |
41 | +# %e will be replaced by the filename without extension | |
42 | +# (use only one of it at one time) | |
43 | +compiler=nasm "%f" | |
44 | + |
@@ -1,42 +0,0 @@ | ||
1 | -[keywords] | |
2 | -# all items must be in one line | |
3 | -# this is by default a very simple instruction set for the Renesas RH850 | |
4 | -instructions=hlt lad spi add sub mul div jmp jez jgz jlz swap jsr ret pushac popac addst subst mulst divst lsa lds push pop cli ldi ink lia dek ldx | |
5 | -registers=r0 r1 r3 r4 r5 r6 r7 r8 r9 lp ep bp sp | |
6 | -directives=define include org list nolist page equivalent word text | |
7 | - | |
8 | -[settings] | |
9 | -# default extension used when saving files | |
10 | -extension=850 | |
11 | - | |
12 | -# the following characters are these which a "word" can contains, see documentation | |
13 | -wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 | |
14 | - | |
15 | -# single comments, like # in this file | |
16 | -comment_single=-- | |
17 | -# multiline comments | |
18 | -comment_open=- | |
19 | -comment_close=- | |
20 | - | |
21 | -# set to false if a comment character/string should start at column 0 of a line, true uses any | |
22 | -# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d | |
23 | - #command_example(); | |
24 | -# setting to false would generate this | |
25 | -# command_example(); | |
26 | -# This setting works only for single line comments | |
27 | -comment_use_indent=true | |
28 | - | |
29 | -# context action command (please see Geany's main documentation for details) | |
30 | -context_action_cmd= | |
31 | - | |
32 | -[indentation] | |
33 | -#width=4 | |
34 | -# 0 is spaces, 1 is tabs, 2 is tab & spaces | |
35 | -#type=1 | |
36 | - | |
37 | -[build_settings] | |
38 | -# %f will be replaced by the complete filename | |
39 | -# %e will be replaced by the filename without extension | |
40 | -# (use only one of it at one time) | |
41 | -compiler=nasm "%f" | |
42 | - |
@@ -2,8 +2,8 @@ | ||
2 | 2 | # Insert as many items as you want, separate them with a ";". |
3 | 3 | # See Geany's main documentation for details. |
4 | 4 | [Extensions] |
5 | -asm_rh850=*.850; | |
5 | +asm850=*.850; | |
6 | 6 | |
7 | 7 | # Note: restarting is required after editing groups |
8 | 8 | [Groups] |
9 | -Programming=asm_rh850;asm_rl78; | |
9 | +Programming=asm850;asm78; |
@@ -1,55 +0,0 @@ | ||
1 | -/* custom GTK3 CSS for Geany */ | |
2 | - | |
3 | -/* make close button on the editor's tabs smaller */ | |
4 | -#geany-close-tab-button { | |
5 | - padding: 0; | |
6 | -} | |
7 | -#geany-close-tab-button GtkImage /* GTK < 3.20 */, | |
8 | -#geany-close-tab-button image /* GTK >= 3.20 */ { | |
9 | - padding: 0; | |
10 | -} | |
11 | - | |
12 | -/* use monospaced font in search entries for easier reading of regexp (#1907117) */ | |
13 | -#GeanyDialogSearch GtkEntry /* GTK < 3.20 */, | |
14 | -#GeanyDialogSearch entry /* GTK >= 3.20 */ { | |
15 | - font-family: monospace; | |
16 | -} | |
17 | - | |
18 | -/* set red background for GtkEntries showing unmatched searches */ | |
19 | -#geany-search-entry-no-match { | |
20 | - color: #fff; | |
21 | - background: #ff6666; | |
22 | -} | |
23 | -#geany-search-entry-no-match:selected /* GTK < 3.20 */, | |
24 | -#geany-search-entry-no-match selection /* GTK >= 3.20 */ { | |
25 | - color: #fff; | |
26 | - background-color: #771111; | |
27 | -} | |
28 | - | |
29 | -/* document status colors */ | |
30 | -#geany-document-status-changed { | |
31 | - color: #ff0000; | |
32 | - font-family: monospace; | |
33 | -} | |
34 | -#geany-document-status-disk-changed { | |
35 | - color: #ff7f00; | |
36 | -} | |
37 | -#geany-document-status-readonly { | |
38 | - color: #007f00; | |
39 | -} | |
40 | - | |
41 | -/* compiler message colors */ | |
42 | -#geany-compiler-error { | |
43 | - color: #ff0000; | |
44 | -} | |
45 | -#geany-compiler-context { | |
46 | - color: #7f0000; | |
47 | -} | |
48 | -#geany-compiler-message { | |
49 | - color: #0000D0; | |
50 | -} | |
51 | - | |
52 | -/* red "Terminal" label when terminal dirty */ | |
53 | -#geany-terminal-dirty { | |
54 | - color: #ff0000; | |
55 | -} |