Semantic Tokens - ChenCMD/datapack-helper-plus-JP GitHub Wiki

セマンティックトークンタイプ

  • annotation
  • boolean
  • comment
  • entity
  • keyword
  • literal
  • namespacedID
  • number
  • operator
  • property
  • string
  • type
  • variable
  • vector

セマンティックトークン修飾子

  • declaration
  • deprecated
  • documentation
  • firstArgument

推奨されるデフォルトスタイル

Semantic Token Selector TextMate Scope 備考
annotation markup.heading.annotation.mcfunction docコメントのアノテーション
boolean constant.language.boolean.mcfunction boolean値
comment N/A
entity support.class.entity.mcfunction entityもしくはscore保持者
keyword N/A 数値範囲を指定する..とtimeの単位
literal keyword.other.mcfunction リテラル引数
literal.firstArgument keyword.control.mcfunction 最初のリテラル引数
namespacedID entity.name.function 名前空間ID
number N/A
operator N/A matches, =, /=など
property N/A エンティティセレクタ引数キー, ブロックプロパティキー, NBT複合タグキー, およびNBTパスキー
string N/A
type N/A アイテムのslots, スコアボードのslots, スコアボードのcriteria
variable N/A Objectives, teams, tags
vector constant.numeric.vector.mcfunction 座標
  • N/Aは、このトークンが言語サーバープロトコルに組み込まれたトークンであり、すでにデフォルトのスタイルを持っているはずであることを意味します。

History

バージョン 説明
1.13.0 セマンティックトークンと修飾子を実装
2.2.0 inStringセマンティック修飾子を追加
⚠️ **GitHub.com Fallback** ⚠️