From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 12 Feb 2018 12:44:01 -0800 From: Elmar Pruesse Reply-To: kyleam/snakemake-mode Message-ID: In-Reply-To: References: Subject: Re: shell/bash highlighting? (#25) Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_5a81fc91aa111_65ce2b06b8a0eecc22857"; charset=UTF-8 Content-Transfer-Encoding: 7bit List-ID: kyleam/snakemake-mode List-Archive: https://github.com/kyleam/snakemake-mode List-Post: List-Unsubscribe: , To: kyleam/snakemake-mode Cc: Kyle Meyer , Comment ----==_mimepart_5a81fc91aa111_65ce2b06b8a0eecc22857 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit > This I do not understand? Shell highlighting for all strings? Yep :) I tried implementing this with `polymode` a while back -- it sort of worked but was slow enough to be annoying, although that's perhaps my lack of skill with lisp. I eventually got stuck when I realized that the "bash parts" are actually "bash + python format mini language": the curly braces kept messing things up. Deriving a python-string-shell-mode from shell-mode was beyond me. Perhaps the low hanging fruit - just applying font locks to the python format mini language parts - would suffice. Although that one should probably just be implemented in python-mode? Curious that python-mode doesn't do that already... -- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/kyleam/snakemake-mode/issues/25#issuecomment-365055718 ----==_mimepart_5a81fc91aa111_65ce2b06b8a0eecc22857 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

This I do not understand? Shell highlighting for all strings?

Yep :)

I tried implementing this with polymode a while back -- i= t sort of worked but was slow enough to be annoying, although that's perh= aps my lack of skill with lisp. I eventually got stuck when I realized th= at the "bash parts" are actually "bash + python format mini language": th= e curly braces kept messing things up. Deriving a python-string-shell-mo= de from shell-mode was beyond me.

Perhaps the low hanging fruit - just applying font locks to the python= format mini language parts - would suffice. Although that one should pro= bably just be implemented in python-mode? Curious that python-mode doesn'= t do that already...

&m= dash;
You are receiving this because you commented.
Reply to th= is email directly, view it on GitHub, or mute the thread.3D""

= ----==_mimepart_5a81fc91aa111_65ce2b06b8a0eecc22857--