Open charmerkai opened 2 years ago
Can you move this to https://github.com/sublimehq/Packages? Edit: Thanks, Keith.
Are you refering to those interpolation expressions such as $(foreach i,j,k)
?
Are you refering to those interpolation expressions such as
$(foreach i,j,k)
?
kind of like that, so in $(), the highlighter just don't work?
so the makefile code like this:
include $(wildcard $(patsubst %,$(DEPDIR)/%.d,$(basename $(TARGET_SOURCES))))
the highlighter just don't show up
~Can you move this to https://github.com/sublimehq/Packages?~ Edit: Thanks, Keith.
thanks , i just don't really know the rules here, and thanks for Keith, too
Confirmed does not match $(
with )
. Does the "match_brackets"
preference require certain scopes for highlighting matches? The $(
has keyword.other.block.begin
instead of a punctuation...
one. Or is it because the (
has a $
attached?
i just don't really know the rules here,
No worries. This is where the Makefile resources live, and there's a slightly different new-issue template to help better.
Bracket matching appears to depend on punctuation.definition
and punctuation.section
. When changing keyword.other to a punctuation scope, bracket pairs are highlighted.
EDIT: It also requires string
scopes to be cleared, which is the little bit more sophisticated part of a fix. We basically need to apply the meta.string meta.interpolation
guideline to Makefile.
Description
when i open a makefile in sublime, and the syntax is selected as makefile the Bracket just doesn't show the highlight
Steps to reproduce
Expected behavior
the Bracket highlight as other file in sublime
Actual behavior
the bracket donesn't highlight
Environment