Skip to content

Add type, external, let word coloring && unit as constant #85

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

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 6 additions & 11 deletions grammars/rescript.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -448,12 +448,10 @@
"match": "(?<=let )[a-z][a-z_A-Z_0-9_]*",
"name": "entity.name.function"
},

{
"match": "(?<=let rec )[a-z][a-z_A-Z_0-9_]*",
"name": "entity.name.function"
},

{
"match": "(?<=let )[_][a-z][a-z_A-Z_0-9_]*",
"name": "comment"
Expand All @@ -466,12 +464,10 @@
"match": "(?<=type )\\b[a-z][a-z_A-Z_0-9_]*",
"name": "entity.name.function"
},

{
"match": "(?<=and )\\b[a-z][a-z_A-Z_0-9_]*",
"name": "entity.name.function"
},

{
"match": "(?<=type rec )[a-z][a-z_A-Z_0-9_]*",
"name": "entity.name.function"
Expand Down Expand Up @@ -516,10 +512,6 @@
{
"include": "#jsx"
},
{
"include": "#jsx-attributes"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, I tried to also include some jsx highlight - but i just gave up, and forget to remove it 😅

},

{
"include": "#operator"
},
Expand All @@ -544,8 +536,11 @@
{
"include": "#punctuations"
},

{ "include": "#type-declaration" },
{ "include": "#variable-declaration" }
{
"include": "#type-declaration"
},
{
"include": "#variable-declaration"
}
]
}