forked from geany/geany
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SystemVerilog filetype and syntax highlighting: - Create SystemVerilog filetype in Geany. - Set it to use the existing Verilog lexer and ctags parser (which already supported both Verilog and SystemVerilog). - Create filedefs file, including all the standard keywords from SystemVerilog-2017 (IEEE Std 1800-2017). The ctags parser is currently underutilized, since classes and other SystemVerilog constructs are tagged but not shown in the Symbols panel. These will be added in a future commit.
- Loading branch information
1 parent
bf35b7b
commit 0405ed7
Showing
9 changed files
with
120 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# For complete documentation of this file, please see Geany's main documentation | ||
[styling] | ||
# Edit these in the colorscheme .conf file instead | ||
default=default | ||
comment=comment | ||
comment_line=comment_line | ||
comment_line_bang=comment_line | ||
number=number_1 | ||
word=keyword_1 | ||
word2=keyword_2 | ||
word3=keyword_3 | ||
string=string_1 | ||
preprocessor=preprocessor | ||
operator=operator | ||
identifier=identifier_1 | ||
stringeol=string_eol | ||
userword=type | ||
comment_word=comment_doc_keyword | ||
input=keyword_4 | ||
output=keyword_4 | ||
inout=keyword_4 | ||
port_connect=keyword_4 | ||
|
||
[keywords] | ||
# all items must be in one line | ||
word=accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind bins binsof bit break buf bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin function generate genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import incdir include initial inout input inside instance int integer interconnect interface intersect join join_any join_none large let liblist library local localparam logic longint macromodule matches medium modport module nand negedge nettype new nexttime nmos nor noshowcancelled not notif0 notif1 null or output package packed parameter pmos posedge primitive priority program property protected pull0 pull1 pulldown pullup pulsestyle_ondetect pulsestyle_onevent pure rand randc randcase randsequence rcmos real realtime ref reg reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor | ||
word2=$finish $exit $stop $realtime $time $stime $printtimescale $timeformat $bitstoreal $bitstoshortreal $itor $signed $cast $realtobits $shortrealtobits $rtoi $unsigned $bits $typename $isunbounded $unpacked_dimensions $left $low $increment $dimensions $right $high $size $clog2 $ln $log10 $exp $sqrt $pow $floor $ceil $sin $cos $tan $asin $acos $atan $atan2 $hypot $sinh $cosh $tanh $asinh $acosh $atanh $countbits $onehot $isunknown $countones $onehot0 $fatal $warning $error $info $fatal $warning $error $info $asserton $assertkill $assertpasson $assertfailon $assertnonvacuouson $assertoff $assertcontrol $assertpassoff $assertfailoff $assertvacuousoff $sampled $fell $changed $past_gclk $fell_gclk $changed_gclk $rising_gclk $steady_gclk $rose $stable $past $rose_gclk $stable_gclk $future_gclk $falling_gclk $changing_gclk $coverage_control $coverage_get $coverage_save $set_coverage_db_name $coverage_get_max $coverage_merge $get_coverage $load_coverage_db $random $dist_erlang $dist_normal $dist_t $dist_chi_square $dist_exponential $dist_poisson $dist_uniform $q_initialize $q_remove $q_exam $q_add $q_full $async$and$array $async$nand$array $async$or$array $async$nor$array $sync$and$array $sync$nand$array $sync$or$array $sync$nor$array $async$and$plane $async$nand$plane $async$or$plane $async$nor$plane $sync$and$plane $sync$nand$plane $sync$or$plane $sync$nor$plane $system | ||
word3= | ||
docComment= | ||
|
||
[settings] | ||
# default extension used when saving files | ||
extension=sv | ||
|
||
# MIME type | ||
mime_type=text/x-systemverilog | ||
|
||
# these characters define word boundaries when making selections and searching | ||
# using word matching options | ||
wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789$ | ||
|
||
# single comments, like # in this file | ||
comment_single=// | ||
# multiline comments | ||
comment_open=/* | ||
comment_close=*/ | ||
|
||
# set to false if a comment character/string should start at column 0 of a line, true uses any | ||
# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d | ||
# #command_example(); | ||
# setting to false would generate this | ||
# # command_example(); | ||
# This setting works only for single line comments | ||
comment_use_indent=true | ||
|
||
# context action command (please see Geany's main documentation for details) | ||
context_action_cmd= | ||
|
||
[indentation] | ||
#width=4 | ||
# 0 is spaces, 1 is tabs, 2 is tab & spaces | ||
#type=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters