Print Page | Close Window

where is problem with my scheme? help

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Syntax Edit
Forum Description: Topics Related to Codejock Syntax Edit
URL: http://forum.codejock.com/forum_posts.asp?TID=9977
Printed Date: 27 November 2024 at 12:26am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: where is problem with my scheme? help
Posted By: yesiwumian
Subject: where is problem with my scheme? help
Date Posted: 27 March 2008 at 10:50am
 hello, my pascal scheme can't deal with the nested Collapsable
 example for the my test.pas file:

begin
end

begin
            begin
                        begin
                        end
            end
end 


=================================================
my  _pascal.schclass is like following:

lexClass:
    name            = c_Pascal
    parent:file        = <*.pas|*.dpr|*.dpk|*.inc|*.int>   
    caseSensitive        = 0


lexClass:
    name        = c_PascalCodeBlock_Start       
    parent        = c_Pascal, c_PascalCodeBlock
    children    = 0   
    previous:tag    = @specs,';', ' ', '\t', @eol
    start:Tag    = 'begin'
    end:Separators    = @specs,'\t', ' ', @eol
    txt:colorFG    = 0x0000FF
    txt:bold    = 1

lexClass:
    name               = c_PascalCodeBlock_End       
    parent             = c_Pascal, c_PascalCodeBlock
    children           = 0   
    previous:tag    = @specs, ' ', '\t', @eol
    start:Tag         = 'end'   
    end:Separators = @specs,' ', '\t', @eol
    txt:colorFG      = 0x0000FF
    txt:bold           = 1

lexClass:
    name              = c_PascalCodeBlock   
    parent            = c_Pascal, c_PascalCodeBlock
//    children        = c_PascalCodeBlock_Start
    start:CLASS    = c_PascalCodeBlock_Start   
    end:CLASS     = c_PascalCodeBlock_End   

    Collapsable    = 1
    CollapsedText    = '...'

============================================
and wherefor when selected mul-lines and use menu 'make selection UpperCase', and bug occur.

i want to write a scheme for basic language, can you help me ?



Replies:
Posted By: mdoubson
Date Posted: 12 March 2009 at 5:55pm
As for basic - look into __VBScript.schclass in my prototype syntax code
 
https://forum.codejock.com/uploads/temp/20090313_005035___vbs.rar - https://forum.codejock.com/uploads/temp/20090313_005035___vbs.rar


-------------
Mark Doubson, Ph.D.


Posted By: mdoubson
Date Posted: 25 March 2009 at 10:59pm
I am surprised why there is no reaction from post originator. If you need to fix your syntax - what are you waiting for?
 
My VBS.syntax has two commented cases for collapsing block - one #Region ---- #End Region allows to have nested (collapsing) blocks inside and another type - "Private Sub ---- "End Sub" - not.


-------------
Mark Doubson, Ph.D.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net