Advertisement
systems_architect

Seed7 Filetype Config for Geany

May 30th, 2025 (edited)
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
INI file 2.25 KB | Software | 0 0
  1. # Seed7 Geany Conf - Marc Carson 2025 - Public Domain - Very hastily created 0.1
  2. # https://www.friendlyskies.net/
  3. # This usually goes in ~/.config/geany/filedefs/
  4. #
  5. # NOTE: Error Regex feature
  6. # In case the error_regex below doesn't automatically work...
  7. # If you want more of a first-class experience in Geany, add this:
  8. # In: Build > Set Build Commands > Seed7 Commands > Error regular expression:
  9. # ([^\s()]+)\((\d+)\):(\d+):
  10. # (Remove the pound sign / hash tag and space at the start!!)
  11. # ...that should give you clickable errors and arrows in the margins.
  12. # Note that Geany will also update the below config automatically with that regex if this file is in your user conf folder.
  13.  
  14. [settings]
  15. extension=sd7
  16. lexer_filetype=Python
  17. comment_single=#
  18. comment_use_indent=true
  19. preprocessor_symbol=$
  20.  
  21. [keywords]
  22. keywords=if then else elsif case when of for while repeat until loop break next return procedure function type var const begin end is do in out ref mod div and or not xor func proc
  23. keywords2=boolean integer bigInteger rational bigRational float complex char string array hash set struct enumeration bin64 bin32 bstring color time duration file text fileSys database sqlStatement process category reference ref_list structElement program ptr func varfunc void proc type object expr TRUE FALSE NIL
  24. identifiers=writeln write readln read input flush truncToSecond await getch putch open close seek tell eof SECONDS NOW OUT KEYBOARD $include include
  25.  
  26.  
  27. [styling]
  28. default=default
  29. comment=comment
  30. string=string
  31. character=character
  32. number=number
  33. operator=operator
  34. identifier=identifier_1
  35. word=keyword_1
  36. word2=keyword_2
  37. word3=keyword_3
  38. preprocessor=preprocessor
  39. error=error
  40.  
  41. [indentation]
  42. width=2
  43. type=0
  44.  
  45. [build-menu]
  46. # %f = full filename, %e = filename without extension
  47.  
  48. FT_00_LB=_Compile
  49. FT_00_CM=s7c "%f"
  50. FT_00_WD=
  51.  
  52. EX_00_LB=_Run
  53. EX_00_CM="./%e"
  54. EX_00_WD=
  55. FT_02_LB=
  56. FT_02_CM=
  57. FT_02_WD=
  58. # error_regex is wild to try to guess at, UNLESS you first enter it in the Set build commands GUI area...it will then update this file by itself. lmao. 2 hours later...
  59. error_regex=([^\\s()]+)\\((\\d+)\\):
  60.  
  61. # Optional: if you have a linter or syntax checker...
  62. # IDK if Seed7 has that...
  63. # FT_01_LB=_Check
  64. # FT_01_CM=s7c --check "%f"
  65. # FT_01_WD=
  66.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement