Comments (8)
@jens1o You can compare (with diff) both files and then try to figure out the most important differences. As I looked now - there aren't so many of them.
Anyway, it seems that original file in this repository comes from the same place as I mentioned so I don't see a big problem to replace it... And also as far as I have used the replaced file for almost a week I haven't noticed this comment problem again or other issues.
from vscode-smarty.
Hi, how would you expect it different?
from vscode-smarty.
That's how I would like it to look.
This is what it's doing right now.
I think an embedded CSS comment might be throwing the syntax off?
from vscode-smarty.
Could you please provide the full file? Or at least a file you can reproduce with(which you created for this issue), so I can fix it?
from vscode-smarty.
^ Here is one possible example... It happens because of "<" symbol in if operator...
from vscode-smarty.
I am not sure that this fully solves all problems and/or don't introduce new but one solution is to replace syntaxes/smarty.tmLanguage with this file: https://github.com/textmate/php-smarty.tmbundle/blob/master/Syntaxes/Smarty.plist - then everything seems to work fine.
It would be nice if @jens1o could check this and update extension if needed.
from vscode-smarty.
@arvislacis I'm fine with a pull request, but I would prefer not to replace a file, but to actuaally fix the problem. :/
from vscode-smarty.
Perfect! Thanks for your investigations :)
from vscode-smarty.
Related Issues (20)
- Add html autocompletion HOT 1
- whether or not support the .phtml type file please? HOT 1
- emmet support HOT 2
- meta issue: Create a language server powering all features to improve experience HOT 4
- feature request : Create a language server to handle multiple templates HOT 5
- 3.1.32 {parent} and {child} tags support
- There is no document formatter for smarty files installed HOT 12
- Is it possible to use *.htm file extension instead of *.tpl? HOT 2
- The project has no license yet. HOT 4
- Emmet/HTML snippets don't work HOT 4
- Enable "HTML mirror cursor" and "F2 to rename tag" for .tpl files
- Unknown function "include".
- Formatting the entire document does not work. HOT 3
- commenting delimiters in a literal block HOT 2
- How can I change the default boundary character HOT 2
- remove Character \ HOT 2
- How to assign variable in snippets.json? HOT 1
- how to change default syntax {} to <%%> HOT 3
- Is this maintained? HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-smarty.