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
Add ISBL lexer #891
Add ISBL lexer #891
Conversation
Add new lexer: - ISBL built-in language DIRECTUM Add New theme: - ISBL editor light
I did not have errors for Ruby 2.5.1. What to do? |
It may have been a transient failure. I restarted the job to see what happens. |
Problem still exists |
- add isbl_editor_dark theme - fixed isbl_editor_light theme
This may have been related to #892. Rebase against master and see if that fixes things. |
@MedvedTMN Thanks for submitting the PR and I'm sorry it's taken so long to get this addressed. I joined the maintainers group a couple of months ago and have been working backwards chronologically through the outstanding PRs which is why I hadn't got to yours yet :( I realise that @vidarh in his review had identified this as having only minor issues but I'm afraid that's not my conclusion. There are a couple of problems:
Sorry you've had to wait so long only to then be hit with such a long list of suggested changes. I'll try to be as responsive as I can be to any follow-up questions you have. |
@MedvedTMN Do you want it close this PR? It looks like perhaps you're planning to create your own fork? |
No, I do not want to close this PR. I just wanted to update the local project files to correct your comments. Am I doing something wrong? |
Looks like @MedvedTMN changed the line-endings on all files and committed them.. |
@MedvedTMN May I know what OS you're working on..? It looks like you altered the line endings of numerous files. |
Windows 10 |
How can I fix it? |
@MedvedTMN Fixing this is perhaps too much for you (I'm assuming that you're not an advanced Git user). But you may want to read through the following documentation for future contributions: I'll try to fix this for you via a PR to your branch some time later.. |
Thank you very much for your help |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the work on getting this ready to merge. It's looking good!
Could I ask you to have a look at reducing the visual sample so that it's not as duplicative? The visual sample doesn't need to be the absolute minimum required to test lexer's rules but for maintainability reasons, it's helpful to have it be more on the minimal side.
If that can be cut down a little, we'll be ready to merge.
@MedvedTMN Why have trailing whitespace been added to the sample file in the latest commit..? |
# Conflicts: # spec/visual/samples/isbl
This reverts commit 93261c4. # Conflicts: # spec/visual/samples/isbl
@MedvedTMN Thanks for fixing the trailing whitespace issue; however, you've added back in all the extraneous stuff in the visual sample you removed earlier. Can you delete that stuff again? |
The current example most fully demonstrates the capabilities of the language. If the example is too large, I can shorten it. Or do you need to remove any specific extraneous stuff? |
@MedvedTMN The code added back by this commit is the extraneous stuff I'm referring to. |
What is wrong with this code? |
@MedvedTMN Did you look at the link? All the code you added back in isn't necessary, is it? The point of the visual sample is to test the rules in the lexer. I don't see why a lexer that's 97 lines of code total needs a visual sample that's almost 300 lines. |
@MedvedTMN To pick one thing as illustrative, you have multiple instances of multiline comments. One or two would suffice. I'm not familiar with this language so it's hard for me to identify definitively what's duplicative but it looks to me like there are many instances like this. The visual sample appears to be a copy and paste from existing code. A more minimal sample that better targeted the rules of the lexer would make this easier to maintain. |
it's all right? |
spec/visual/samples/isbl
Outdated
// Types | ||
type : IApplication | ||
type : .custom_type | ||
|
||
// Operators | ||
result = 1 + 1 / 2 | ||
|
||
// Numbers | ||
integer = 5 | ||
float = 5.5 | ||
|
||
// Strings | ||
double_quotes = "An example" | ||
single_quotes = 'An example' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MedvedTMN Is this correct syntax for ISBL? Looking quickly at the rules, it looked to me like .custom_type
should be lexed as a type but that wasn't what happened. Could you have a look?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool. Can you update the visual sample so that it's correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
edit this part:
// Types
type : IApplication
type : .custom_type
or this:
Employees : IReference.РАБ = CreateReference(EMPLOYEES_REFERENCE; ArrayOf("Пользователь"; SYSREQ_STATE); FALSE)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@MedvedTMN I realise this took a long time but we finally got there in the end :) This will be part of the next release of Rouge. The gem is scheduled to be pushed on Tuesday 14 April 🎉 |
This commit adds a lexer for ISBL.
Add new lexer:
Add New theme: