From 9c158998a411594a8737414a783a1ec7d6cc57d0 Mon Sep 17 00:00:00 2001 From: Lukas Tobler Date: Tue, 26 Oct 2021 00:03:53 +0200 Subject: Add support for the fennel language --- init.lua | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/init.lua b/init.lua index 6ebecde..b77b7a8 100644 --- a/init.lua +++ b/init.lua @@ -1,9 +1,6 @@ -- -- vis-commentary -- --- comment strings and matching patterns are taken from: --- https://github.com/rgieseke/textadept/blob/9906c1fcec1c33c6a83c33dc7874669b5c6113f8/modules/textadept/editing.lua --- local comment_string = { actionscript='//', ada='--', ansi_c='/*|*/', antlr='//', apdl='!', apl='#', @@ -11,20 +8,20 @@ local comment_string = { batch=':', bibtex='%', boo='#', chuck='//', cmake='#', coffeescript='#', context='%', cpp='//', crystal='#', csharp='//', css='/*|*/', cuda='//', dart='//', desktop='#', django='{#|#}', dmd='//', dockerfile='#', dot='//', - eiffel='--', elixir='#', erlang='%', faust='//', fish='#', forth='|\\', - fortran='!', fsharp='//', gap='#', gettext='#', gherkin='#', glsl='//', - gnuplot='#', go='//', groovy='//', gtkrc='#', haskell='--', html='', - icon='#', idl='//', inform='!', ini='#', Io='#', java='//', javascript='//', - json='/*|*/', jsp='//', latex='%', ledger='#', less='//', lilypond='%', - lisp=';', logtalk='%', lua='--', makefile='#', markdown='', matlab='#', - moonscript='--', myrddin='//', nemerle='//', nsis='#', objective_c='//', - pascal='//', perl='#', php='//', pico8='//', pike='//', pkgbuild='#', prolog='%', - props='#', protobuf='//', ps='%', pure='//', python='#', rails='#', rc='#', - rebol=';', rest='.. ', rexx='--', rhtml='', rstats='#', ruby='#', - rust='//', sass='//', scala='//', scheme=';', smalltalk='"|"', sml='(*)', - snobol4='#', sql='#', tcl='#', tex='%', text='', toml='#', vala='//', - vb='\'', vbscript='\'', verilog='//', vhdl='--', wsf='', - xml='', yaml='#' + eiffel='--', elixir='#', erlang='%', faust='//', fennel=';;', fish='#', + forth='|\\', fortran='!', fsharp='//', gap='#', gettext='#', gherkin='#', + glsl='//', gnuplot='#', go='//', groovy='//', gtkrc='#', haskell='--', + html='', icon='#', idl='//', inform='!', ini='#', Io='#', + java='//', javascript='//', json='/*|*/', jsp='//', latex='%', ledger='#', + less='//', lilypond='%', lisp=';', logtalk='%', lua='--', makefile='#', + markdown='', matlab='#', moonscript='--', myrddin='//', + nemerle='//', nsis='#', objective_c='//', pascal='//', perl='#', php='//', + pico8='//', pike='//', pkgbuild='#', prolog='%', props='#', protobuf='//', + ps='%', pure='//', python='#', rails='#', rc='#', rebol=';', rest='.. ', + rexx='--', rhtml='', rstats='#', ruby='#', rust='//', sass='//', + scala='//', scheme=';', smalltalk='"|"', sml='(*)', snobol4='#', sql='#', + tcl='#', tex='%', text='', toml='#', vala='//', vb='\'', vbscript='\'', + verilog='//', vhdl='--', wsf='', xml='', yaml='#' } -- escape all magic characters with a '%' -- cgit