sakura icon indicating copy to clipboard operation
sakura copied to clipboard

タイプ別設定に正規表現を

Open misogihagi opened this issue 5 years ago • 1 comments

問題内容

やりたいこと

スロットは限られているのでなんとかできるようタイプ別設定に正規表現が欲しい

szLineComment=//
szLineComment2=/#|#/
szLineComment3=※

問題のカテゴリ

  • 仕様の問題

環境情報

  • OS バージョン Windows 10 Home 64bit

  • サクラエディタバージョン サクラエディタ Ver. 2.2.0.1

    Share Ver: 166
    Compile Info: V1500 WR WIN500/I501/C000/N500
    Last Modified: 2015/3/1 19:42:16
    

misogihagi avatar Mar 10 '20 19:03 misogihagi

ご提案ありがとうございます。 導入できるか検討していきたいと思います。

当座「正規表現」が意味する仕様を、例示から読み取れなかったので反応を躊躇っていた感じです。

設定項目 指定値 解釈(PCRE正規表現)
szLineComment // m!^[\t ]*(//).*$!
szLineComment2 /#|#/ m!^[\t ]*(#|#).*$!
szLineComment3 m!^[\t ]*(※).*$!

正規表現キーワードの枠組みを使えば実現可能かな?と思っています。

berryzplus avatar Mar 14 '20 06:03 berryzplus