[Gambas-Notification] [Git][gambas/gambas][master] 2 commits: Enhance the Gambas code analyzer to speed up the new highlighting component.

Benoît Minisini (@bminisini) gitlab at mg.gitlab.com
Sun Oct 29 00:02:34 CEST 2023



Benoît Minisini pushed to branch master at Gambas / gambas


Commits:
1608babe by Benoît Minisini at 2023-10-28T23:36:10+02:00
Enhance the Gambas code analyzer to speed up the new highlighting component.

[COMPILER]
* BUG: Synchronize reserved words enumeration with reserved words table.

[GB.EVAL]
* NEW: Highlight: 'Analyze()' got a new optional boolean parameter that stops the analyze when the "%>" token is encountered.
* NEW: Highlight: 'IsFunction' is a new property that returns if 'Highlight.Analyze()' got a function declaration.
* NEW: Highlight: 'LengthBefore' is a new property that returns the number of analyzed characters before the possible rewrite.

- - - - -
9f21f0c9 by Benoît Minisini at 2023-10-29T00:02:29+02:00
Fix 'gambas' and 'webpage' highlighting.

[GB.HIGHLIGHT]
* BUG: Catch the possible errors returned by the archiver when compiling a generated highlighting component.
* NEW: TextHighlighter: ToHTML() and Paint() routine ignore the 'TextHighlighter.CanRewrite' property (this is not their job).
* BUG: Use the new 'Highlight' properties to fix the Gambas highlighter.
* BUG: Fix 'webpage' highlighting.

- - - - -


13 changed files:

- + comp/src/gb.highlight/.hidden/test/Webpage1.webpage
- comp/src/gb.highlight/.src/Main.module
- comp/src/gb.highlight/.src/TextHighlighter.class
- comp/src/gb.highlight/.src/_TextHighlighter_Gambas.class
- comp/src/gb.highlight/highlight/webpage.include
- main/gbx/gbx_expression.h
- main/lib/eval/c_highlight.c
- main/lib/eval/eval_analyze.c
- main/lib/eval/eval_analyze.h
- main/lib/eval/eval_read.c
- main/lib/eval/gb.eval.h
- main/share/gb_reserved.h
- main/share/gb_reserved_keyword.h


View it on GitLab: https://gitlab.com/gambas/gambas/-/compare/685037ef54203c2ed15a9c4155944e9141f16bef...9f21f0c9c049fd688695842325318c4dfad7bf90

-- 
View it on GitLab: https://gitlab.com/gambas/gambas/-/compare/685037ef54203c2ed15a9c4155944e9141f16bef...9f21f0c9c049fd688695842325318c4dfad7bf90
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/notification/attachments/20231028/29af83f3/attachment.htm>


More information about the Notification mailing list