Giter VIP home page Giter VIP logo

Comments (4)

InternetUnexplorer avatar InternetUnexplorer commented on June 9, 2024

@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.

hbomb79 avatar hbomb79 commented on June 9, 2024

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.

viluon avatar viluon commented on June 9, 2024

@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.

InternetUnexplorer avatar InternetUnexplorer commented on June 9, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.