Hi All,
I just installed UltraEdit and started building language support for Stata, it's an interpreted language that has some similarities with c-type languages but lot's of differences making syntax highlighting tricky, I've tried many editors with varying success but still looking for the 'perfect' one (I guess that's how I got to UE) ...
So, in Stata here are a) simple strings - "this is a simple string" that are enclosed in double quotes; and b) strings containing " character that are surrounded in so called compound double quotes - `"this is a string that contains " symbol"'
Double quotes are symmetric both open and close quotes are the same " symbol (ascii 34);
Compound double quotes open with ` (ascii 96) + double quote, and close with double quote + single quote (ascii 39)
So as long as the string is in the compound double quotes it can contain any number of (unbalanced) " symbols. In addition, compound double quotes can be nested, so I can have something like:
`"`"this is the first string"' `"this is the second one"'"' ...
I kind of figured making this work with just a wordfile parameters won't work (but would love to be wrong) the question is, can it be done with any other means? I really like ultraedit and write almost exclusively in Stata so building good suport for the language (even if this will involve need for many custom scripts) is important to me.
I will appreciate any advice you might have.
Thanks,
Zura
I just installed UltraEdit and started building language support for Stata, it's an interpreted language that has some similarities with c-type languages but lot's of differences making syntax highlighting tricky, I've tried many editors with varying success but still looking for the 'perfect' one (I guess that's how I got to UE) ...
So, in Stata here are a) simple strings - "this is a simple string" that are enclosed in double quotes; and b) strings containing " character that are surrounded in so called compound double quotes - `"this is a string that contains " symbol"'
Double quotes are symmetric both open and close quotes are the same " symbol (ascii 34);
Compound double quotes open with ` (ascii 96) + double quote, and close with double quote + single quote (ascii 39)
So as long as the string is in the compound double quotes it can contain any number of (unbalanced) " symbols. In addition, compound double quotes can be nested, so I can have something like:
`"`"this is the first string"' `"this is the second one"'"' ...
I kind of figured making this work with just a wordfile parameters won't work (but would love to be wrong) the question is, can it be done with any other means? I really like ultraedit and write almost exclusively in Stata so building good suport for the language (even if this will involve need for many custom scripts) is important to me.
I will appreciate any advice you might have.
Thanks,
Zura