Community
    • 登入

    UDL assymetric delimiters

    已排程 已置頂 已鎖定 已移動 General Discussion
    2 貼文 2 Posters 2.4k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • Baksa PéterB
      Baksa Péter
      最後由 編輯

      I am trying to define a language that has the usual () and [] delimiters, and also it has [,) and (,]
      I tried to set delimiter 1 open ( close ) ] and deimiter2 open [ close ) ] but that doesn’t work.
      eg.
      range [a, b]
      range [a, b)
      range (a, b]

      Ideas anybody?

      Claudia FrankC 1 條回覆 最後回覆 回覆 引用 0
      • Claudia FrankC
        Claudia Frank @Baksa Péter
        最後由 編輯

        @Baksa-Péter

        can be achieved by using the special operator (( )).
        From the document

        So, if two or more strings are defined inside of a special operator (( )), they are interchangeable.

        so a open like (( ( [ )) and a closing like (( ) ] )) sholud do the trick

        Cheers
        Claudia

        1 條回覆 最後回覆 回覆 引用 0
        • 第一個貼文
          最後的貼文
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors