scheme language issues
See original GitHub issueSo I found few issues:
- string don’t start with
'
in scheme'
is for quote (you can quote names, which become symbols or lists) (#2263) solution: remove|'[^('\s]*
from string regex - lambda,define have first parameter mark as function invocation
(lambda (foo bar) (concat foo bar))
foo is mark as function, I’ve try to came up with regex but was not able to find one. (#2263) - function without argument is not marked as function
solution:
/(\()[^\s()]*(?=[\s)])/,
added(?=[\s)])
instead of(?=\s)
(#1463) - ~numbers that don’t have space before them are not marked as numbers
solution: optional space in the beginning of number regex
(\s?|[()])
~
Wanted to create PR but don’t know how to fix function with define and lambda.
Issue Analytics
- State:
- Created 5 years ago
- Comments:20 (20 by maintainers)
Top Results From Across the Web
Parentheses and Indenting - UT Computer Science
The two biggest barriers to learning Scheme are probably parentheses and indenting. In Scheme, parentheses are used a little differently than in most ......
Read more >Scheme on Exercism
Scheme is a statically scoped and properly tail-recursive dialect of the Lisp programming language invented by Guy Lewis Steele Jr. and Gerald Jay...
Read more >Scheme Exercises - Gettysburg Computer Science
Your real education begins as you approach problems, simple or complex, and translate your solutions into Scheme code. At first, there will be...
Read more >Comprehensive Guide To Scheme Programming Language
A scheme Programming language supports almost all of the programming protocols such as POP, ActiveX, SMTP, IMAP, HTTP, XML, and many more. These...
Read more >Scheme Programming Weeks 1 and 2
Group work to get acquainted with Scheme is OK, and asking and answering general questions about how things work is OK. But aside...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think that this do the trick for last number issue:
([\s()])
at the end, instead of\b
, same as at the begining, but I need to run the tests to be sure that this don’t break anything.#2263 is merged and I think it addresses all issues here. Feel free to reopen this in case I missed something.