Skip to content

Windows PowerShell 5.1向けの強調キーワード、正規表現キーワード、色設定用のファイル追加 - #2332

Merged
berryzplus merged 1 commit into
sakura-editor:masterfrom
BHCrusher1:master
Jan 22, 2026
Merged

Windows PowerShell 5.1向けの強調キーワード、正規表現キーワード、色設定用のファイル追加#2332
berryzplus merged 1 commit into
sakura-editor:masterfrom
BHCrusher1:master

Conversation

@BHCrusher1

Copy link
Copy Markdown
Contributor
  • PowerShell のキーワードは強調キーワードとして設定
  • 自動変数, 変数などは正規表現で検知する
  • カラー設定は Visual Studio Code 風にする

PR対象

  • アプリ(サクラエディタ本体)

カテゴリ

  • 追加

PR の背景

#2317

仕様・動作説明

インストーラーにWindows PowerShell 5.1向けの強調キーワード、正規表現キーワード、色設定用のファイルを追加する
タイプ別設定のデフォルト値への追加は作成後別途作成します。

PR の影響範囲

影響なし。

テスト内容

[共通設定] - [強調キーワード] で新しいセットを作成し、PowerShell51.kwdをインポート
[タイプ別設定] を新規作成し、[強調キーワード1]に先ほど作成したセットを設定、色設定でPowerShell51.colをインポート
[タイプ別設定] の[正規表現キーワード]で、PowerShell51.rkwをインポート。[正規表現キーワードを使用する]にチェック
作成したタイプ別設定で、PowerShellのスクリプトファイルを開くと、それらしくハイライトされる

関連 issue, PR

参考資料

インポート後のイメージ
強調キーワード
カラー設定
正規表現キーワード

強調された画面例(このスクリーンショットではルールファイルのほかに、手動でコメントスタイルを設定しています)
強調された画面例

強調キーワードなどの根拠(Microsoft Learn)

強調キーワード

PowerShell スクリプト言語のキーワード | about_Language_Keywords

正規表現

自動変数 | about_Automatic_Variables
変数 | about_Variables
演算子 | about_Operators

- PowerShell のキーワードは強調キーワードとして設定
- 自動変数, 変数などは正規表現で検知する
- カラー設定は Visual Studio Code風にする
@github-actions

Copy link
Copy Markdown

Test Results

658 tests  ±0   658 ✅ ±0   2m 5s ⏱️ -16s
 81 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit d08c6db. ± Comparison against base commit af1db21.

@sonarqubecloud

Copy link
Copy Markdown

@berryzplus berryzplus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

対応ありがとうございます。

@berryzplus
berryzplus merged commit 6aff8f6 into sakura-editor:master Jan 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants