-
-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Language specific string delimiters #2119
Conversation
…ge to define their tokens to start/end strings.
@AlecTroemel, this might interest you too since I suspect that Janet must also use single quotes for quoting and not starting strings. There might be other languages variations, but I don't know really the other languages (fennel?) |
@sthilaid not exactly sure what you mean by "must also use single quotes for quoting and not starting strings." Though Janet strings can use |
@AlecTroemel , okay, yes that's why I'm asking! Janet looks like another lisp dialect but clearly has it's quirks! ;p But you could add backquotes as a string starter with this change. |
I think Fennel folks might be interested too :) May be @technomancy ? |
They probably will also be interested in the structured edition changes too then: #2117 |
He he, beat me to posting it :) |
Cool, thanks! Fennel can have the same rule applied as Scheme; we only use double-quotes and never single-quotes. I had considered working on adding structural editing to TIC; I probably would have done it years ago if the editor had been written in Lua or a language that has real strings, but I never imagined someone would have actually pulled it off in C. Amazing. |
hehe, thanks! It's not perfect though. Don't hesitate if you have questions
or irritants / bugs and I'll do my best to fix it. I still intend to work
in emacs but this makes working in the tic code editor a lot more pleasant
;p
…On Tue, Feb 7, 2023 at 1:03 PM Phil Hagelberg ***@***.***> wrote:
Cool, thanks! Fennel can have the same rule applied as Scheme; we only use
double-quotes and never single-quotes.
I had considered working on adding structural editing to TIC; I probably
would have done it years ago if the editor had been written in Lua or a
language that has real strings, but I never imagined someone would have
actually pulled it off in C. Amazing.
—
Reply to this email directly, view it on GitHub
<#2119 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAOQCAMW7ODYU3JLHJ5B7LWWKE7ZANCNFSM6AAAAAAUTLSPKM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
David
|
Added 'stdStringStartEnd' option in tic_script_config to allow language to define their tokens to start/end strings.