Skip to content
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

Fix basic HTML highlighting #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
8 changes: 7 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Smarty Sugar for Espresso

Based on the [php-smarty TextMate bundle](https://github.com/textmate/php-smarty.tmbundle)
Smarty is a PHP Template Engine for designers. Built in LiveStreet and CoGear.

I hate any template engine but use it every day in developing LS skin and skin Sugar is a working solution for Smarty syntax (.tpl files, for example).

Based on the [php-smarty TextMate bundle](https://github.com/textmate/php-smarty.tmbundle) and forked from [prtm](https://github.com/ptrm/)'s [repo](https://github.com/ptrm/Smarty.sugar).

## Known bugs
- smarty highlighting is present inside html tags enclosed by `{literal}`
Expand All @@ -11,6 +15,8 @@ Based on the [php-smarty TextMate bundle](https://github.com/textmate/php-smarty
- auto-completion and highlighting for native variable modifiers
- mark invalid syntax?

Note: it's prtm's TODO, not My (Grawl's)

## Copying
Permission to copy, use, modify, sell and distribute this
software is granted. This software is provided "as is" without
Expand Down
6 changes: 3 additions & 3 deletions Syntaxes/Smarty.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<zones>
<include collection="tags" />

<include syntax="text.html.basic" />
<include syntax="language-root.html" />
</zones>

<library>
Expand Down Expand Up @@ -34,8 +34,8 @@
<capture number="2" name="identifier.function.tag.close.built-in"/>
<capture number="3" name="delimiter.balanced.bracket.end.curly-brace"/>
</ends-with>
<subzones name="embedded.text.html.basic">
<include syntax="text.html.basic" />
<subzones name="embedded.language-root.html">
<include syntax="language-root.html" />
</subzones>
</zone>

Expand Down