#926 lexer_filetype not working correctly

closed
nobody
Filetypes (68)
2
2013-03-08
2012-12-29
Farhad Parsan
No

OS : Debian squeeze

I'm using lexer_filetype to create a new filetype with syntax highlighting for systemverilog language based on Verilog language. It works perfectly with the debian Geany package (version 0.19.1) or building the same version from source code but it doesn't work correctly when I build the newer versions of Geany (0.21 or 1.22) . Please look at the attachments to see the corresponding output of each version.

I would like to thank you for your great job! Geany is my most favorite editor in Linux.

Farhad

Discussion

  • Farhad Parsan
    Farhad Parsan
    2012-12-29

    bug description

     
    Attachments
  • Matthew Brush
    Matthew Brush
    2012-12-29

    The styling section of the filetypes changed a lot in 1.22. You should re-create your filetypes.SystemVerilog.conf file based on the new filetypes.verilog shipped with 1.22. You might need to tweak the [styling] section a bit as (AFAIK) none of the core developers use Verilog so the mapping may not be great. Help improving the highlighting/mappings for this filetype is most certainly welcome.

    For specific help in updating the filetype/styling, feel free to ping me on IRC (codebrainz).

     
  • Farhad Parsan
    Farhad Parsan
    2012-12-29

    After creating a new filetypes.SystemVerilog.conf based on the new filetypes.verilog shipped with 1.22, syntax highlighting is fixed! Thanks codebrainz.
    The new highlighting scheme however doesn't recognize word3 group under [keywords] section anymore. I tried changing verilog section under /scintilla/include/Scintilla.iface (val SCE_V_WORD3=8) and rebuilding geany but it didn't fix it.

     
  • Matthew Brush
    Matthew Brush
    2012-12-29

    Not sure if it helps, but your attachment has more keywords for the 3rd set (System Tasks), and also that in the 1.22 filetypes.verilog, word3 is mapped to the named style keyword_3 in the color schemes, which is mapped to keyword, so the first set of keywords (Primary) should look the same as the 3rd set (System Tasks).

     
    • priority: 5 --> 2
    • milestone: 3508874 -->
    • status: open --> closed