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

Please add Starlark (Bazel) lexer #946

Closed
1 task done
farcop opened this issue Mar 13, 2024 · 2 comments
Closed
1 task done

Please add Starlark (Bazel) lexer #946

farcop opened this issue Mar 13, 2024 · 2 comments
Labels
help wanted lexer missing Missing a lexer, please contribute

Comments

@farcop
Copy link
Contributor

farcop commented Mar 13, 2024

Is there an existing issue for this?

  • I have searched the existing issues

What is the missing lexer?

Starlark (formerly known as Skylark) is a language intended for use as a configuration language. It was designed for the Bazel build system, but may be useful for other projects as well.

Links to existing syntax definitions

https://github.com/bazelbuild/starlark/blob/master/spec.md

@farcop farcop added help wanted lexer missing Missing a lexer, please contribute labels Mar 13, 2024
@farcop
Copy link
Contributor Author

farcop commented Mar 13, 2024

Starlark is strongly influenced by Python, Starlark syntax is a strict subset of Python and Starlark semantics is almost a subset of that language. In particular, its data types and syntax for statements and expressions will be very familiar to any Python programmer. However, Starlark is intended not for writing applications but for expressing configuration: its programs are short-lived and have no external side effects and their main result is structured data or side effects on the host application.

@farcop
Copy link
Contributor Author

farcop commented Mar 13, 2024

I've just found that Python lexer support Bazel files.
I just added Bzlmod files support #947
I think it will be enough.

@farcop farcop closed this as completed Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted lexer missing Missing a lexer, please contribute
Projects
None yet
Development

No branches or pull requests

1 participant