• Login
Community
  • Login

functionList.xml parser classRange for "UniVerse BASIC" (VBScript)

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
classrangevbscriptparser
1 Posts 1 Posters 547 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • И
    Игорь Соколов
    last edited by Dec 27, 2018, 6:44 AM

    Hello!

    Trying to build a class parser for VBScript looking like:

    Class test1    
        Private Sub Class_Initialize()
        end Sub
    End Class
    

    I got one:

                <classRange
    				mainExpr    ="(?mix)                                             
    					\b(?:class)\b                             
    					(?s:.*?)
    					\b(?:end\s+class)\b"									
    			>									 
    				<className>							
    					<nameExpr expr="(?mix)^\bclass\s+\w+" />  						 			
    				</className>
    				<function 
    					mainExpr="(?mix)\b(public|private)*\s*(property)*\s*(function|sub|get|set)\s+\w+\s*\("
    				>					
    					<functionName>
    						<funcnameExpr expr="(?i)((set|get)\s+)?\w+\s*\(" />	
    						<funcnameExpr expr="(?i)((set|get)\s+)?\w+\s*" />
    					</functionName>
    				</function>
    			</classRange>
    

    But it’s not working. What’s wrong?

    I tested it in regular expressions online and it works in parts.

    1 Reply Last reply Reply Quote 0
    1 out of 1
    • First post
      1/1
      Last post
    The Community of users of the Notepad++ text editor.
    Powered by NodeBB | Contributors