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

Step 4: Syntax Highlighting #6

Closed
gbleaney opened this issue Mar 23, 2021 · 1 comment
Closed

Step 4: Syntax Highlighting #6

gbleaney opened this issue Mar 23, 2021 · 1 comment

Comments

@gbleaney
Copy link
Collaborator

The goal here is to have the plugin turn on syntax highlighting for the two kinds of files relavent to Pysa: taint.config and *.pysa files.

Here are the VSCode docs on syntax highlighting.

For .pysa files, the highlighting should look like exactly what you get in a .py file. As a start, see if we can just get a Python syntax highlighter to passably highlight the file. As a stretch goal, see if you can modify the Python syntax highlighter into treating the fully qualified function name the same as a normal unqualified function name. As a REAL stretch goal, see if you can treat DSL code in .pysa files as an embedded language and highlight it differently

taint.config files are just JSON files, so all you need to do is apply a JSON highlighter to the file.

@gracewgao
Copy link
Member

Thanks, I'll give this a try and see what I can do!

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

3 participants