OK, I've looked around, but can't seem to find anything on the docs on defining custom syntaxes. i.e. I can't seem to find and @language sqlCan I do this myself (realistically)?
--
You received this message because you are subscribed to the Google Groups "leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/47b02c2d-e030-45b1-9457-57ababea9e21n%40googlegroups.com.
OK, I've looked around, but can't seem to find anything on the docs on defining custom syntaxes. i.e. I can't seem to find and @language sql
Can I do this myself (realistically)?
--
OK, I've looked around, but can't seem to find anything on the docs on defining custom syntaxes.
i.e. I can't seem to find and @language sql
Can I do this myself (realistically)?
--
You received this message because you are subscribed to a topic in the Google Groups "leo-editor" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/leo-editor/pU1HOGQ6jXU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to leo-editor+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/CAMF8tS2C2ZX-LjSzUDyGDE-tSbt60_ctPMDuRCnYHGqr11E-%2Bg%40mail.gmail.com.
I've attached an example of how I'm wrapping the (t)sql nodes.
I can deal with this, but it would be a lot cleaner if I could assign the language directive either in just a sql comment (i.e. -- @language sql )
or using a uA/attribute or maybe something in the headline.
--
You received this message because you are subscribed to a topic in the Google Groups "leo-editor" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/leo-editor/pU1HOGQ6jXU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to leo-editor+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/CAMF8tS1WTzdoWhuzRWs3%3DCaw4ViB3s8Hxx-s1kvqkbOtbHEoKg%40mail.gmail.com.
Yes, I believe it would :-)There still might be an issue with name collisions since @sql isn't directly a mode (i.e. tsql)and creating a directive for every mode obviously wouldn't be ideal either -but maybe a shorthand/mapping could be defined in the document Startup section?i.e. to map a local directive @sql (arbitrary) to a specific mode assignment, like tsql.I could also deal with buttons to assign/remove attributes but I'd need to be able to view them.The attributes plugin has still been on my list to try but haven't had time to dive into it yet.I understand these could also impact things like VR3 so I'm not quite sure how that would factor in.As it is, I already have to define in a comment, `-- language=sql`, for pycharm to nest syntaxes,so aligning with this could work too.