LuaLS / LuaLS/lua-language-server

New setting to expand identifier / name / word and/or consolidation of constant

オープン
#910 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

enhancement
主要言語
Lua
スター
4.4k
フォーク
442
PR マージ指標
30日以内にマージされた PR はありません

説明

Some Lua based domain specific languages use an extended character set for identifiers, this is easily achieved by modifying e.g. alnum in luaconf.h, similar in LuaJIT and also is adjustable through compact modifications in ZeroBrane.

In Sumneko it was easy to modify as well until recently (through parser/grammar.lua), but with the latest patch the definition of which characters an identifier/word/lua-name represents is all over the place.

  • newparser.lua - CharMapWord,
  • grammar.lua - defs.NameBody
  • luadoc.lua - name
  • tokens.lua - Word

As sample e.g. adding support for $ and @ characters in the identifiers: \x24-\x24 and \x40-\x40 or the single character versions are added to the listings.

It would be better to have a extension setting where this can be listed, or alternatively at least a single file where this is defined as constant (similar to how its able to be overridden/extended through luaconf.h)

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、newparser.lua、grammar.lua、luadoc.lua、tokens.lua にある識別子の定義を比較します。特に CharMapWord、defs.NameBody、name、Word を確認してください。要求された拡張設定または共有定数で4か所すべてをカバーできるか判断し、その後、$ や @ のような文字が一貫して認識されることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
lua
領域
devtools
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。