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

Add a parser for Scilab language #1913

Open
vincentcouvert opened this issue Jan 13, 2023 · 7 comments
Open

Add a parser for Scilab language #1913

vincentcouvert opened this issue Jan 13, 2023 · 7 comments
Labels
lexer-request A request for a lexer to be developed. pr-open A PR addressing this issue is open.

Comments

@vincentcouvert
Copy link

Hi all,
Please find below information related to the development of a Scilab parser in Rouge.
Best regards.

The name of the language
Scilab: https://www.scilab.org/
Online help: https://help.scilab.org/

Implementation in other libraries
Pygments: https://pygments.org/docs/lexers/#pygments.lexers.matlab.ScilabLexer
Chroma: https://github.com/alecthomas/chroma/blob/master/lexers/embedded/scilab.xml
Highlight: https://github.com/highlightjs/highlight.js/blob/main/src/languages/scilab.js

Additional context
GitLab uses Rouge to detect language used in files and GitLab is now the official Scilab development platform.
Having this feature in Rouge would simplify the reading of Scilab code in repository, issues, wiki, ...

@vincentcouvert vincentcouvert added the lexer-request A request for a lexer to be developed. label Jan 13, 2023
@vincentcouvert
Copy link
Author

Reference issue on GitLab side: https://gitlab.com/gitlab-org/gitlab/-/issues/377795

@vincentcouvert
Copy link
Author

Reference issue on Scilab side: https://gitlab.com/scilab/scilab/-/issues/16895

@y377
Copy link

y377 commented Jan 16, 2023

{% highlight ruby linenos %}
def foo
  puts 'foo'
end
{% endhighlight %}

@vincentcouvert
Copy link
Author

@y377 what do you mean?

@y377
Copy link

y377 commented Jan 16, 2023

Sorry, I just want to try code highlighting, it turns out that GitHub does not support this way of defining code blocks

image
Do you support this way of defining code blocks? Because it is very convenient to write in the markdown editor, because it is suitable for non-code developers to use!

@vincentcouvert
Copy link
Author

@y377 I think your question is not related to this issue (which is about Scilab language support).

@vincentcouvert
Copy link
Author

See corresponding PR : #1916

@tancnle tancnle added the pr-open A PR addressing this issue is open. label Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lexer-request A request for a lexer to be developed. pr-open A PR addressing this issue is open.
Projects
None yet
Development

No branches or pull requests

3 participants