Skip to content

Commit

Permalink
Update Pascal filedef and extension mappings (geany#3694)
Browse files Browse the repository at this point in the history
* Update Pascal filedef and extension mappings

  #### filetypes.pascal

  - add line comments

  - pair the 'fpc' compile command with another common Free Pascal
    utility [^1], 'instantfpc', to build and run the current file
    in a single step

  #### filetype_extensions.conf

  - add Lazarus project files (*.lpr)

* Replace obsolete [build_settings] with [build-menu]
  • Loading branch information
rdipardo committed Nov 23, 2023
1 parent 88a0bfc commit e5680fe
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
18 changes: 14 additions & 4 deletions data/filedefs/filetypes.pascal
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ mime_type=text/x-pascal
#wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
# single comments, like # in this file
#comment_single=
comment_single=//
# multiline comments
comment_open={
comment_close=}
Expand All @@ -59,8 +59,18 @@ context_action_cmd=
# 0 is spaces, 1 is tabs, 2 is tab & spaces
#type=1

[build_settings]
[build-menu]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
compiler=fpc "%f"
run_cmd="./%e"
FT_00_LB=_Compile
FT_00_CM=fpc -s "%f"
FT_00_WD=
FT_01_LB=_Build
FT_01_CM=fpc "%f"
FT_01_WD=
FT_02_LB=_Run script
FT_02_CM=instantfpc "%f"
FT_02_WD=
EX_00_LB=_Execute
EX_00_CM="./%e"
EX_00_WD=
2 changes: 1 addition & 1 deletion data/filetype_extensions.conf
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Meson=meson.build;meson.options;meson_options.txt;
Nim=*.nim;
NSIS=*.nsi;*.nsh;
Objective-C=*.m;*.mm;*.h;
Pascal=*.pas;*.pp;*.inc;*.dpr;*.dpk;
Pascal=*.pas;*.pp;*.inc;*.dpr;*.dpk;*.lpr;
Perl=*.pl;*.perl;*.pm;*.agi;*.pod;
PHP=*.php;*.php3;*.php4;*.php5;*.phtml;
Po=*.po;*.pot;
Expand Down

0 comments on commit e5680fe

Please sign in to comment.