Re: [fpc-pascal] character escaping with ^LETTER

2015-01-19 Thread Martin Frb
On 19/01/2015 13:17, Dmitry Boyarintsev wrote: CodeTools syntax highlighter won't recognize the syntax as characters either (delphi 7 highlighter doesn't recognize it as a character escaping as well) Add that to the bugtracker please (as synedit HL issue). It is probably easy to fix, sim

Re: [fpc-pascal] character escaping with ^LETTER

2015-01-19 Thread Dmitry Boyarintsev
On Mon, Jan 19, 2015 at 11:05 AM, Mattias Gaertner < nc-gaert...@netcologne.de> wrote: > FYI: Codetools do not have a syntax highlighter. In Lazarus the > highligher of synedit (TSynPasSyn) is used. > I was hoping to hear that. I had some concerns about it at the time I was looking at SynEdit's c

Re: [fpc-pascal] character escaping with ^LETTER

2015-01-19 Thread Dmitry Boyarintsev
On Mon, Jan 19, 2015 at 11:02 AM, leledumbo wrote: > > http://www.freepascal.org/docs-html/ref/refsu7.html > The beginning of the section. Shame on me. "The compiler is rather sloppy about the characters it allows after the caret, but in general one should assume only letters" Looking at scanne

Re: [fpc-pascal] character escaping with ^LETTER

2015-01-19 Thread Mattias Gaertner
On Mon, 19 Jan 2015 08:17:52 -0500 Dmitry Boyarintsev wrote: >[...] > a:=^M; // char(13) >[...] > CodeTools syntax highlighter won't recognize the syntax as characters > either (delphi 7 highlighter doesn't recognize it as a character escaping > as well) FYI: Codetools do not have a syntax hig

Re: [fpc-pascal] character escaping with ^LETTER

2015-01-19 Thread leledumbo
> Should it be added to this page: http://www.freepascal.org/docs-html/ref/refse8.html#x20-190001.8 ? (need a bug report created?) or is it documented somewhere else? http://www.freepascal.org/docs-html/ref/refsu7.html -- View this message in context: http://free-pascal-general.1045716.n5.nabb

Re: [fpc-pascal] character escaping with ^LETTER

2015-01-19 Thread Howard Page-Clark
On 19/01/2015 13:29, Dmitry Boyarintsev wrote: Not sure which pascal its inherited from... but Delphi 7 does compile it too. It was certainly a feature of the first TurboPascal, and perhaps was in even earlier Pascal compilers, enabling simple insertion of control characters from the

Re: [fpc-pascal] character escaping with ^LETTER

2015-01-19 Thread Frederic Da Vitoria
2015-01-19 14:17 GMT+01:00 Dmitry Boyarintsev : > Hello, > > today I saw this kind of character escaping: > var > a :char; > begin > a:=^M; // char(13) > writeln(^X); // char(24) > end; > > The code of the character is derived as ord(letter)-ord('A')+1 > Not sure which pascal its inherited

Re: [fpc-pascal] character escaping with ^LETTER

2015-01-19 Thread Dmitry Boyarintsev
hmm.. the character escaping is somewhat tricky. The following code compiles: writeln(^_^)); thanks, Dmitry On Mon, Jan 19, 2015 at 8:17 AM, Dmitry Boyarintsev < skalogryz.li...@gmail.com> wrote: > Hello, > > today I saw this kind of character escaping: > var > a :char; > begin > a:=^M; // c

[fpc-pascal] character escaping with ^LETTER

2015-01-19 Thread Dmitry Boyarintsev
Hello, today I saw this kind of character escaping: var a :char; begin a:=^M; // char(13) writeln(^X); // char(24) end; The code of the character is derived as ord(letter)-ord('A')+1 Not sure which pascal its inherited from... but Delphi 7 does compile it too. I vaguely remember it seeing