zanuka/dust-buster

Syntax highlighting breaks on partials typed without trailing space

rosshamish opened this issue · 3 comments

Problem behaviour:
2015-01-19 17_39_10-sametime appshare highlighter

Expected behaviour:
2015-01-19 17_40_04-sametime appshare highlighter

Looks like the issue is in one of the regexes around line 96 in syntaxes/DustBuster.YAML-tmLanguage

dust_partials:
  begin: (\{*(>))\s*([-a-zA-Z0-9_\./]+)*
  beginCaptures:
    '1': {name: entity.name.tag.block.open.dust}
    '2': {name: constant.character.dust}
    '2': {name: constant.character.dust}
  end: (~?\/\})
  endCaptures:
    '1': {name: entity.name.tag.block.open.dust}
    '2': {name: variable.parameter.dust}
  name: meta.function.block.start.dust
  patterns:
  - {include: '#dust_strings'}

Dustjs documentation uses syntax without the space
2015-01-19 17_44_25-sametime appshare highlighter

thanks @rosshamish , will fix

Updated this morning and the fix works for me. Awesome!

For later reference: fixed in 394cd06

good to hear 👍