Forum > Documentation (Maintaining -)

Fpc documentation completely ignores commonly used "{%H-}"

(1/4) > >>

Searching in the Fpc, MseIde/MseGui and Lazarus directories for "{%H-}" shows many occurrences. When I searched in the documentation of the latest stable FPC for "{%" I couldn't find anything. Might be a good idea to update the documentation so that the next stable release would also cover this subject.

FPC does nothing with {%H-}, Lazarus does. So it should be in the Lazarus documentation.

Report is about {%H}, not {$H}

Posted to bugtracker,

Typo, I meant %H yes.  {% convention is Lazarus only.


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---{%H-}
Is documented in the FPC docs

"{" begins a comment.
The above code is a comment, indeed. Well, at least as far as fpc is concerned.

The Lazarus IDE handles all sorts of comments. E.g. comments in front/after a method declaration may be shown as hint by the IDE, if hovering an invocation of that method.

"{%" is also a comment handled by the IDE.
When the IDE reads the compiler output during compilation, and the IDE finds hints produced by the compiler then it may filter them from the output shown in the messages window.
The compiler has no idea, what the IDE will do with the output. And the compilers output is not changed by that comment.

The IDE also handles "{%region}", which to the compiler is also just a comment.


[0] Message Index

[#] Next page

Go to full version