Closed tshedor closed 8 years ago
I am currently using the latest version from tshedor:master (https://github.com/tshedor/ruby-slim.tmbundle) with Sublime Text 3 and so far it works like a charm. Thanks @thsedor!
Great work! ๐ I am happy to merge this big PR when @tshedor feels it's ready and stable. :)
@fredwu Merge away! I was able to test on ST2 today and only encountered one [quickly resolved] bug. Thanks!
Awesome, thanks @tshedor! ๐
Merging this, everyone please give this a try and report any issues. ๐
Apologies for the massive code dump; I'll do my best to humanize the work in this PR comment.
Screenshots
Before
After
File Additions
.tmLanguage
to its YAML equivalent inSyntaxes/Ruby Slim.YAML-tmLanguage
. This will require an extra build step, but the improved legibility is worth it.Demo/demo.slim
. Its contents aim to cover as many edge cases as possible.Features
erb:
andless:
.
or#
shortcuts or HTML tags likespan
).
and#
shortcut separators (i.e. span.
my-class#
my-id)my-class
#my-id
href
="#")true
,false
, andnil
when used as attribute values*{
href: '#'}
):
span.my-new-tag)Bugfixes
attribute="value" other-attribute="other-value"
])20 (related comment)
38
47 and #53
56
58
(Unrelated: #23 and #41 seem complete)