View Single Post
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 08-15-2016 , 20:19   Re: [Editor] Sublime AMXX-Editor v1.9
Reply With Quote #34

Hello @Destro-,

I am learning your regex on 'AMXX-Pawn.sublime-syntax', and I do not understand why the following regex:
Code:
  ########################################################

  # "PAWN Comments"
  pawn_coment:
    - match: ^/\* =(\s*.*?)\s*= \*/$\n?
      scope: comment.block.pawn
      captures:
        1: meta.toc-list.banner.block.pawn
I tested it and looks like it only match things like this: ( https://regex101.com/r/tF2hV5/2)
Code:
irrelevant
/* =                                                                
                                                                    
                                                                    
  This is the only line where text is allowed. Why such rule?       
                                                                    
                                                                = */
irrelevant
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective

Last edited by addons_zz; 08-15-2016 at 20:20. Reason: misspelling
addons_zz is offline