Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Fixes space after colon highliting #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

petems
Copy link
Contributor

@petems petems commented Mar 11, 2016

Before:
image

After:
screenshot 2016-03-11 15 49 03

@@ -119,7 +119,7 @@
'name': 'storage.type.puppet'
'2':
'name': 'entity.name.section.puppet'
'match': '^\\s*(\\w+)\\s*{\\s*([\'"].+[\'"]):'
'match': '^\\s*(\\w+)\\s*{\\s*([\'"].+[\'"]\\s*):'
Copy link
Contributor

Choose a reason for hiding this comment

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

The spaces should not be captured as entity.name.section.puppet.

@petems petems force-pushed the fix_extra_space_highlight branch 2 times, most recently from 45c0368 to cefc69d Compare March 15, 2016 14:58
@winstliu
Copy link
Contributor

It looks like this has diverged from the $variable regex right below it - can you update one or the other so that they are as identical as possible?

@petems petems force-pushed the fix_extra_space_highlight branch from cefc69d to 1794d1f Compare April 8, 2016 15:09
'match': '^\\s*(\\w+)\\s*{\\s*([\'"].+[\'"]):'
'3':
'name': 'entity.name.section.puppet'
'match': '^\\s*(\\w+)\\s*{\\s*([\'"].+[\'"]*)(\\s*:)'
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we matching \\s*: as entity.name.section.puppet?

@alexjurkiewicz
Copy link
Contributor

@petems are you interested in still working on this PR? If you aren't, I will try to find some time

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

Successfully merging this pull request may close these issues.

3 participants