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 |
# 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.
@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.
There was a problem hiding this comment.
Cool. Can you update the visual sample so that it's correct?
There was a problem hiding this comment.
edit this part:
// Types
type : IApplication
type : .custom_type
or this:
Employees : IReference.РАБ = CreateReference(EMPLOYEES_REFERENCE; ArrayOf("Пользователь"; SYSREQ_STATE); FALSE)
|
@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.
|
@MedvedTMN Apologies for the late post, but where did you get the lists of ISBL keywords/builtins you're using here? I'd like to transition to auto-generating them from docs. |
Documentation is available in the built-in help system for Directum 5. I extracted it from the system database tables at one point. |
|
Is there a publicly available and parseable download for this? Say, from a github repository? I'm afraid I don't read Russian. |
Unfortunately, there is no information in the public domain, as this is a commercial product. |
|
I wonder then whether we should maintain this list of keywords at all, if there is no publicly available source for it. |
Projects from this system are managed in GitLab, which uses this library for syntax highlighting. This highlighting is very helpful during code reviews, so I think it's best to keep it, at least in its current form. But the decision is ultimately yours. |
|
I am happy to keep it, if we can find a source for a publicly-accessible list of builtins that doesn't have to be maintained manually. For now though I think it is best to remove, as in #2236. If you have a self-hosted GitLab, you are welcome to write your own plug-in and maintain the builtin lists yourself. |

Add new lexer:
Add New theme: