Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Syntax Edit
  New Posts New Posts RSS Feed - where is problem with my scheme? help
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

where is problem with my scheme? help

 Post Reply Post Reply
Author
Message
yesiwumian View Drop Down
Newbie
Newbie


Joined: 27 March 2008
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote yesiwumian Quote  Post ReplyReply Direct Link To This Post Topic: where is problem with my scheme? help
    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 ?
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 12 March 2009 at 5:55pm
As for basic - look into __VBScript.schclass in my prototype syntax code
 
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.