Comments (4)
@hbomb79 I included the following in the main
context in LuaExtended.sublime-syntax
for testing:
- match: "\\b(class|extends|mixin|alias)\\b"
scope: keyword
# push: class-string-declaration ### I don't have your whole syntax file, so I can't use this part.
- match: "\\b(abstract)\\b\\s+(?=class)\\b"
scope: keyword
- match: "\\b(configureConstructor)\\b(?=(\\w+))"
scope: keyword
For some reason, it works perfectly for me:
Could you include your whole syntax file, so I can experiment further?
from luaextended.
That is interesting - Right now I am using the 'Lua' include, instead of 'LuaExtended' without issues.
This is the full syntax file:
%YAML 1.2
---
name: Titanium
comment: "A syntax package for users writing class code for Titanium. Uses LuaExtended"
file_extensions:
- ti
scope: source.titanium
contexts:
main:
- match: "\\b(class|extends|mixin|alias)\\b"
scope: keyword
push: class-string-declaration
- match: "\\b(abstract)\\b\\s+(?=class)\\b"
scope: keyword
- match: "\\b(configureConstructor)\\b(?=(\\w+))"
scope: keyword
- include: Packages/LuaExtended/LuaExtended.sublime-syntax
class-string-declaration:
- match: "[\"'\\s]*(\\w*)[\"'\\s]*"
scope: string.class.titanium
pop: true
from luaextended.
@InternetUnexplorer thanks for the work! I'll be actually away for the weekend, so if you want to carry on, fine with me 😄 Otherwise I'll get to it once I'm back, sorry @hbomb79 😕
from luaextended.
@hbomb79 @viluon Sorry for not responding earlier, I was asleep. Thanks for the full syntax file, I should have time to work on it tonight.
from luaextended.
Related Issues (15)
- Suggestions should not work within strings HOT 3
- Wrong Regex for error() Strings
- Indentation Problems HOT 5
- Problems on Ubuntu 16.04 HOT 3
- SublimeLinter: syntax_map has been Deprecated HOT 11
- Completions Clash with All Autocomplete HOT 2
- Is this syntax compatible with lua-language-server?
- Inline if/else/etc statements do not indent properly. HOT 1
- Wrong Indentation with Statements
- More Documented Snippets
- Code Conversion Snippets
- Function Definition Highlighting Not Triggered with Newlines
- Concatenated error highlighting HOT 1
- Function indentation error HOT 1
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 luaextended.