Skip to content
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

Can calt do differenciate strings and functions? #1207

Closed
ShalokShalom opened this issue Mar 4, 2021 · 6 comments
Closed

Can calt do differenciate strings and functions? #1207

ShalokShalom opened this issue Mar 4, 2021 · 6 comments

Comments

@ShalokShalom
Copy link
Contributor

Hi there :)

I am currently rooting for \ becoming the lambda symbol in Haskling.

They are using your calt code, so I thought you are a great address to tell us something about its capabilities.

Is it possible to differentiate between functions and strings, as mentioned in the Haskling issue?

Thanks!

@RubenVerg
Copy link

RubenVerg commented Mar 4, 2021 via email

@ShalokShalom
Copy link
Contributor Author

The issue questions if the differentiation can be made and the backlog from version 1.1 speaks about calt.

https://github.com/i-tu/Hasklig/releases/tag/1.1

@tonsky
Copy link
Owner

tonsky commented Mar 4, 2021

No, it can’t be differentiated from the font. You need syntax highlighting in the editor that can apply different features to different regions. I think you can have something like that in Atom/VS Code

@ShalokShalom
Copy link
Contributor Author

ShalokShalom commented Mar 4, 2021

So the syntax highlighting does change the character ultimately to the ligature then?

@tonsky
Copy link
Owner

tonsky commented Mar 4, 2021

Ligature can be made a font feature which can be turned on or off (e.g. ss** or cv**).

You then use syntax highlighting to turn that feature OFF for most of the code, but ON only in identifiers, for example. As a result, it will only be applied to identifiers.

@ShalokShalom
Copy link
Contributor Author

Ah, wonderful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants