delphi - const set of Char and Pascal Script Unit Importer -


i'm running pascal script unit importer on unit, error:

"expecting token '=' token 'of' found. previous tokens: 'worddelimiters: set of'"

here constant triggers error:

const   worddelimiters: set of char = [#0..#255] - ['a'..'z','a'..'z','1'..'9','0']; 

the constant worddelimiters part of third party library. there way rewrite unit importer can work unit?

a test shows set of char supported:

type   tworddelimiters = set of char;  

the unit importer result:

procedure siregister_mytestunit(cl: tpspascalcompiler); begin   cl.addtypes('tworddelimiters', 'set of char'); end; 

but constant set of char below doesn't work, there complaint on '..' double dots:

const   mychars = ['a'..'z', 'a'..'z'];   

skipping double dots , typing chars manually works, isn't there way?

const   mychars = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']; 


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -