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

Syntax recognition Procfile #770

Open
1 task done
Angelk90 opened this issue May 22, 2024 · 4 comments
Open
1 task done

Syntax recognition Procfile #770

Angelk90 opened this issue May 22, 2024 · 4 comments

Comments

@Angelk90
Copy link

Check for existing issues

  • Completed

Describe the feature

Vscode:
Screenshot 2024-05-22 alle 15 34 04

Zed:
Screenshot 2024-05-22 alle 15 34 45

If applicable, add mockups / screenshots to help present your vision of the feature

No response

@maxdeviant
Copy link
Member

This sounds like a good use case for an extension.

@maxdeviant maxdeviant transferred this issue from zed-industries/zed May 22, 2024
@Angelk90
Copy link
Author

@maxdeviant : Actually I made a mistake, I wanted to publish them on zed-industries/zed, I didn't realize that I published them on zed-industries/extensions.

@maxdeviant
Copy link
Member

@maxdeviant : Actually I made a mistake, I wanted to publish them on zed-industries/zed, I didn't realize that I published them on zed-industries/extensions.

I transferred the issues to the extensions repo since these issues should be solved via extensions.

@Angelk90
Copy link
Author

@maxdeviant : Do you think something like this could be fixed as highlights.scm?

;; highlights.scm

;; Define the highlight groups for different nodes.
((variable) @variable
 "keyword" @keyword
 "string" @string
 "constant" @constant
 "function" @function
 "type" @type
 "property" @property
 "tag" @tag)

;; Match nodes and apply highlight groups.
[(variable_name) (scoped_identifier) (identifier)] @variable
[(true) (false) (null)] @constant
(string_literal) @string
[(function_definition) (method_definition) (generator_function_definition)] @function
[(class_definition) (interface_definition) (type_alias)] @type
(property_identifier) @property
(tag_name) @tag

;; Custom matches for Procfile syntax highlighting.
[(command_name)] @keyword
[(command_argument)] @string
[(environment_variable)] @constant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants