Giter Site home page Giter Site logo

Comments (6)

thqby avatar thqby commented on August 17, 2024

static、global 属于 storage.modifier
and、or 属于运算符关键字
loop等 属于控制语句关键字
=>胖剪头函数定义不属于运算符
最后高亮实现是由主题插件根据相应的textmate scopes显示不同的主题定义的颜色

from vscode-autohotkey2-lsp.

ZhuangQu avatar ZhuangQu commented on August 17, 2024

我认同您的部分说法,不过仍有in、case中的函数、PgUp、&这4个问题QAQ

from vscode-autohotkey2-lsp.

thqby avatar thqby commented on August 17, 2024

in也是运算符
热键a & b::ab属于按键,&则是连接用的,目前是归到运算符中
PgUp和case中函数的问题在修复了

from vscode-autohotkey2-lsp.

ZhuangQu avatar ZhuangQu commented on August 17, 2024

我刚查了一下文档,in有两种含义,第一个确实是运算符(保留的,目前没有用),第二个是与for组成for ... in ...的控制结构。如果in的含义是后者,可不可以让in与for为同种颜色QAQ

from vscode-autohotkey2-lsp.

thqby avatar thqby commented on August 17, 2024

也参考了typescript中的textmate scopes分类
image
当然你也可以修改插件目录下syntaxes\ahk2.tmLanguage.json文件
image

from vscode-autohotkey2-lsp.

ZhuangQu avatar ZhuangQu commented on August 17, 2024

好的~感谢大佬

from vscode-autohotkey2-lsp.

Related Issues (20)

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.