/[eiffelstudio]/trunk/Src/Eiffel/interface/new_graphical/text_window/text/lexer/editor_eiffel_scanner.l
ViewVC logotype

Log of /trunk/Src/Eiffel/interface/new_graphical/text_window/text/lexer/editor_eiffel_scanner.l

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Revision:

Revision 103347 - (view) (annotate) - [select for diffs]
Modified Thu Jul 18 15:24:16 2019 UTC (4 weeks, 6 days ago) by jfiat
File length: 13264 byte(s)
Diff to previous 103346
Fixed editor issue with manifest strings ending with %% such as "foo%%".

See bug#19527

Revision 103346 - (view) (annotate) - [select for diffs]
Modified Thu Jul 18 13:14:19 2019 UTC (4 weeks, 6 days ago) by jfiat
File length: 13300 byte(s)
Diff to previous 102046
Fixed issue with verbatim strings followed by a character.

See bug#19527 (and mailing list)

Revision 102046 - (view) (annotate) - [select for diffs]
Modified Mon Aug 20 13:29:01 2018 UTC (12 months ago) by alexk
File length: 13812 byte(s)
Diff to previous 100792
Treated `is` as keyword regardless of current syntax variant because it is now used for an across loop.

Revision 100792 - (view) (annotate) - [select for diffs]
Modified Tue Sep 26 12:12:46 2017 UTC (22 months, 3 weeks ago) by alexk
File length: 14520 byte(s)
Diff to previous 99309
Fixed test#unicode008 by changing acceptable UTF-8 sequences to match those specified in the Unicode standard.

Revision 99309 - (view) (annotate) - [select for diffs]
Modified Wed Oct 19 12:07:13 2016 UTC (2 years, 10 months ago) by jfiat
File length: 14526 byte(s)
Diff to previous 93150
Added support for quoted feature in comment using two backticks such as `foo`  in addition to previous backtick and single quote `foo'.

Revision 93150 - (view) (annotate) - [select for diffs]
Modified Mon Oct 21 07:14:46 2013 UTC (5 years, 10 months ago) by tedf
File length: 14478 byte(s)
Diff to previous 87433
* Do not ignore %R in the scanner, but keep them as tokens in the editor, so
that the positions can be calculated exactly the same as the source on disk.

* Removed duty code of handling the difference caused by %R's removal in the
search tool and click/complete tool.

* Doing this also fixes a potential issue that inconsistency new line in a file
might cause offset when PND. As `file_standard_is_windows' was used and
consistent new lines was assumed.

* Uncommented the code in search tool to support partial Unicode Regex search
(Gobo does not fully support Unicode Regex search)

* Removed %R handling in EB_DEVELOPMENT_WINDOW. Use Unicode positions from the
parser instead of UNICODE_POSITION_MAPPER.

* With this patch, search result offset and PND selection offset issues are
fixed. It seems to me that the EIS entry display issue is also not reproducible
anymore, but I need to verify.

* Possible breaking change in the editor is that, the  clients needed to do what
we did to translate source positions to editor positions. Especially needed to
pay attention when using {KEYBOARD_SELECTABLE_TEXT_PANEL}.select_region. With
old code, it will not work anymore, as now the clients only need to provide
source positions without any translation.

review#13060003

Revision 87433 - (view) (annotate) - [select for diffs]
Modified Sat Oct 8 17:40:52 2011 UTC (7 years, 10 months ago) by alexk
File length: 14309 byte(s)
Diff to previous 84810
Removed release number from the constants indicating syntax variant because different syntax variants of different releases are not supported.
Promoted keywords `across' and `some' from provisional syntax to the standard one.
Changed handling of keywords in provisional mode to match that of standard mode because there are no provisional constructs at the moment.
Modified processing of keywords in editor: `across' and `some' are treated as keywords if current syntax is not obsolete, `is' is treated as `indexing'.
Updated default options: default syntax is now standard, attached-by-default is set to true unless specified otherwise.


Revision 84810 - (view) (annotate) - [select for diffs]
Modified Thu Nov 4 10:34:55 2010 UTC (8 years, 9 months ago) by tedf
File length: 14661 byte(s)
Diff to previous 81478
* Refactored scanners in the editor library. Made EDITOR_SYNTAX_SCANNER and EDITOR_BASIC_SCANNER direct descendants of EDITOR_SCANNER.
* Simplified EDITOR_BASIC_SCANNER and removed gobo dependency completely from the library.
* Adjusted corresponding code in EiffelStudio to maintain original functionalities (Still using Gobo Lexical).

Revision 81478 - (view) (annotate) - [select for diffs]
Modified Tue Nov 10 18:46:47 2009 UTC (9 years, 9 months ago) by alexk
File length: 14678 byte(s)
Diff to previous 81206
Changed processing of "across" and "some" to treat them as keywords only in provisional mode.


Revision 81206 - (view) (annotate) - [select for diffs]
Modified Wed Oct 21 12:06:43 2009 UTC (9 years, 10 months ago) by alexk
File length: 14241 byte(s)
Diff to previous 80984
Supported new keywords "across" and "some".
Extended syntax options to include "provisional" variant that stands for
the syntax that might be included in the forthcoming releases of the
standard.
Accepted new loop construct at parse time in provisional mode.


Revision 80984 - (view) (annotate) - [select for diffs]
Modified Wed Sep 30 22:33:27 2009 UTC (9 years, 10 months ago) by paulb
File length: 14187 byte(s)
Diff to previous 79047
Editor syntax highlighting now respects class level syntax options.


Revision 79047 - (view) (annotate) - [select for diffs]
Modified Tue Jun 2 22:50:50 2009 UTC (10 years, 2 months ago) by manus
File length: 13546 byte(s)
Diff to previous 78128
Updated copyright info.
Regenerated using the latest gelex tool.


Revision 78128 - (view) (annotate) - [select for diffs]
Modified Wed Apr 8 14:24:01 2009 UTC (10 years, 4 months ago) by tedf
File length: 13547 byte(s)
Diff to previous 77174
* Fixed bug#15590 that "~" and "/~" were not highlighted as operators.
* Corrected the generating script and used `gelex' from %ISE_EIFFEL%.

Revision 77174 - (view) (annotate) - [select for diffs]
Modified Mon Feb 16 19:37:37 2009 UTC (10 years, 6 months ago) by manus
File length: 13527 byte(s)
Diff to previous 74500
Added support for new object test syntax `attached {T} exp as x' instead of `{x: T} exp',
  but also for the other variants `attached {T} exp', `attached exp as x' and `attached exp'.
  Currently `exp' can be any kind of expression but we need to restrict it to match the ECMA
  specification.
Added support for new attached/detachable type syntax which replaces ! and ?.


Revision 74500 - (view) (annotate) - [select for diffs]
Modified Tue Aug 19 14:24:14 2008 UTC (11 years ago) by alexk
File length: 13449 byte(s)
Diff to previous 74490
Supported new syntax for attributes (there is no associated semantics yet).

Revision 74490 - (view) (annotate) - [select for diffs]
Modified Sun Aug 17 06:56:59 2008 UTC (11 years ago) by alexk
File length: 13409 byte(s)
Diff to previous 74255
Added a new keyword `note' to highlight it in the editor.

Revision 74255 - (view) (annotate) - [select for diffs]
Modified Tue Jul 29 13:56:22 2008 UTC (11 years ago) by tedf
File length: 13384 byte(s)
Diff to previous 73981
- Do not do the special of "\'{UTF8_char}{1,2}" or "\'%\/[0-9]+(\/)?" to catch incorrect character, catch "\'([^' \t\r\n]|{NON_ASCII})+" instead. Now we treat everything until "'" or white chars after "'" as part of wrong character. This fixed bug#14526.

Revision 73981 - (view) (annotate) - [select for diffs]
Modified Tue Jul 1 07:44:03 2008 UTC (11 years, 1 month ago) by tedf
File length: 13394 byte(s)
Diff to previous 69010
- Extended editor library to support Unicode.
- ES
* Integrated new editor library into ES. Now Unicode chars can be correctly rendered in the editor, which is good for some GUI internationalization, Output tool, for example. But before we setup correct way of deciding encoding of source files, all Unicode char will be lost when saving, as for the moment we insist on ISO-8859-1 for compatibility.
* Cleared the ambiguity of Unicode internal representation to be UTF-32. Yet to decide which one Vision2 to take (UTF-32 or UTF-16), as WEL takes UTF-16 while Vision2(Unix) takes UTF-32 as far as I see.
* Changed some components in ES internally, to support Unicode, mostly for search tool and code completion. Searching for Unicode strings are still not available unless we compile against trunk of Gobo. More works are still needed for other components before full Unicode supports.
- Encoding library
* Changed APIs of encoding library to be command/query. Added `last_converted_stream'. 
* Made SYSTEM_ENCODINS in encoding library (abstracted from SHARED_LOCALE).
* Added abstract encoding detector in encoding library.
* Moved some useful API into ENCODING_HELPER.
- Changed {CLASS_I}.text to STRING_32 that returns class text in Unicode. Added interface ENCODING_CONVERTER into the compiler. This interface can also be used later to handle encoding conversion without introducing the encoding library.
- Some cosmetics.

Revision 69010 - (view) (annotate) - [select for diffs]
Modified Mon Jun 11 20:16:59 2007 UTC (12 years, 2 months ago) by paulb
File length: 13676 byte(s)
Diff to previous 65152
Fixed scanner to correct highlight integers, hex, octal and binary numbers. They are no longer highlighted when defined in a syntactical erroneous manner.

Revision 65152 - (view) (annotate) - [select for diffs]
Modified Mon Nov 20 21:46:04 2006 UTC (12 years, 9 months ago) by juliant
File length: 13590 byte(s)
Diff to previous 58995
marked 'bit' keyword and bit syntax as obsolete.
added syntax highlighting of binary and octal integer representation.

Revision 58995 - (view) (annotate) - [select for diffs]
Modified Tue May 16 15:50:42 2006 UTC (13 years, 3 months ago) by tedf
File length: 13514 byte(s)
Diff to previous 58663
Revised copyright for all scanners and parsers.

Revision 58663 - (view) (annotate) - [select for diffs]
Modified Wed May 3 00:36:01 2006 UTC (13 years, 3 months ago) by tedf
File length: 12107 byte(s)
Diff to previous 58325
1. Revised editor eiffel scanner to support new configuration system, where univers.class_by_name is modified into  CONF_GOUP.class_by_name. This makes mapping and renaming classes correctly display.
2. Made EB_EDITOR stonable.
3. Removed position checking so that newly typed feature can be pick and dropable without saving.
4. Made newly typed class pick and dropable, this is done by scanner side.


Revision 58325 - (view) (annotate) - [select for diffs]
Modified Thu Apr 20 16:05:16 2006 UTC (13 years, 4 months ago) by manus
File length: 11846 byte(s)
Diff to previous 53101
Moved trunk/Src/bench/Eiffel to trunk/Src/Eiffel.

Revision 53101 - (view) (annotate) - [select for diffs]
Modified Wed Jul 6 22:21:43 2005 UTC (14 years, 1 month ago) by neilc
Original Path: trunk/Src/bench/Eiffel/interface/new_graphical/text_window/text/lexer/editor_eiffel_scanner.l
File length: 11846 byte(s)
Diff to previous 52863
More on verbatim string


Revision 52863 - (view) (annotate) - [select for diffs]
Modified Fri Jul 1 00:06:23 2005 UTC (14 years, 1 month ago) by neilc
Original Path: trunk/Src/bench/Eiffel/interface/new_graphical/text_window/text/lexer/editor_eiffel_scanner.l
File length: 13580 byte(s)
Diff to previous 52529
Fixed problem when commenting out verbatim strings.


Revision 52529 - (view) (annotate) - [select for diffs]
Modified Thu Jun 23 13:52:11 2005 UTC (14 years, 2 months ago) by alexk
Original Path: trunk/Src/bench/Eiffel/interface/new_graphical/text_window/text/lexer/editor_eiffel_scanner.l
File length: 13211 byte(s)
Diff to previous 52347
Ensured that "infix" and "prefix" are processed as keywords.


Revision 52347 - (view) (annotate) - [select for diffs]
Modified Mon Jun 20 14:49:23 2005 UTC (14 years, 2 months ago) by alexk
Original Path: trunk/Src/bench/Eiffel/interface/new_graphical/text_window/text/lexer/editor_eiffel_scanner.l
File length: 13157 byte(s)
Diff to previous 52256
Supported integer literals with intermediate underscores at arbitrary positions.


Revision 52256 - (view) (annotate) - [select for diffs]
Modified Thu Jun 16 19:54:18 2005 UTC (14 years, 2 months ago) by neilc
Original Path: trunk/Src/bench/Eiffel/interface/new_graphical/text_window/text/lexer/editor_eiffel_scanner.l
File length: 13175 byte(s)
Diff to previous 51809
Better support for verbatim strings


Revision 51809 - (view) (annotate) - [select for diffs]
Modified Tue Jun 7 09:38:34 2005 UTC (14 years, 2 months ago) by alexk
Original Path: trunk/Src/bench/Eiffel/interface/new_graphical/text_window/text/lexer/editor_eiffel_scanner.l
File length: 12281 byte(s)
Diff to previous 51710
Added new keyword: assign.


Revision 51710 - (view) (annotate) - [select for diffs]
Modified Fri Jun 3 23:42:53 2005 UTC (14 years, 2 months ago) by neilc
Original Path: trunk/Src/bench/Eiffel/interface/new_graphical/text_window/text/lexer/editor_eiffel_scanner.l
File length: 12254 byte(s)
Diff to previous 51620
Scanner for verbatim string handling with '{' characters


Revision 51620 - (view) (annotate) - [select for diffs]
Modified Wed Jun 1 23:40:58 2005 UTC (14 years, 2 months ago) by neilc
Original Path: trunk/Src/bench/Eiffel/interface/new_graphical/text_window/text/lexer/editor_eiffel_scanner.l
File length: 12117 byte(s)
Diff to previous 51251
Put back correct implementation for expression of verbatim string, and added catching of verbatim strings that use '{' instead of '['


Revision 51251 - (view) (annotate) - [select for diffs]
Modified Fri May 20 14:20:44 2005 UTC (14 years, 3 months ago) by manus
Original Path: trunk/Src/bench/Eiffel/interface/new_graphical/text_window/text/lexer/editor_eiffel_scanner.l
File length: 11946 byte(s)
Diff to previous 50932
Fixed lexer definition file so that there is a blank before the starting `{' otherwise
  it caused an error in new version of `gelex'.
Updated generated file with code generated by new `gelex'.


Revision 50932 - (view) (annotate) - [select for diffs]
Modified Tue May 10 23:53:07 2005 UTC (14 years, 3 months ago) by neilc
Original Path: trunk/Src/bench/Eiffel/interface/new_graphical/text_window/text/lexer/editor_eiffel_scanner.l
File length: 11945 byte(s)
Diff to previous 50640
Updated layout of preferences for better readability


Revision 50640 - (view) (annotate) - [select for diffs]
Modified Tue May 3 14:54:01 2005 UTC (14 years, 3 months ago) by alexk
Original Path: trunk/Src/bench/Eiffel/interface/new_graphical/text_window/text/lexer/editor_eiffel_scanner.l
File length: 11941 byte(s)
Diff to previous 49774
Supported highlighting for hexadecimal integer literals.


Revision 49774 - (view) (annotate) - [select for diffs]
Modified Mon Apr 4 05:57:41 2005 UTC (14 years, 4 months ago) by manus
Original Path: trunk/Src/bench/Eiffel/interface/new_graphical/text_window/text/lexer/editor_eiffel_scanner.l
File length: 11885 byte(s)
Diff to previous 49524
Use new syntax for static access.


Revision 49524 - (view) (annotate) - [select for diffs]
Modified Sat Mar 26 00:24:27 2005 UTC (14 years, 5 months ago) by neilc
Original Path: trunk/Src/bench/Eiffel/interface/new_graphical/text_window/text/lexer/editor_eiffel_scanner.l
File length: 11893 byte(s)
Diff to previous 42229
- Removed having to pass tab size to every token creation
- Added handling of verbatim strings so keywords are not highlighted in editor


Revision 42229 - (view) (annotate) - [select for diffs]
Modified Sat Mar 20 05:28:12 2004 UTC (15 years, 5 months ago) by manus
Original Path: trunk/Src/bench/Eiffel/interface/new_graphical/text_window/text/lexer/editor_eiffel_scanner.l
File length: 10142 byte(s)
Diff to previous 40962
Added support for Void as a keyword.


Revision 40962 - (view) (annotate) - [select for diffs]
Modified Fri Jan 9 23:13:23 2004 UTC (15 years, 7 months ago) by manus
Original Path: trunk/Src/bench/Eiffel/interface/new_graphical/text_window/text/lexer/editor_eiffel_scanner.l
File length: 10118 byte(s)
Diff to previous 36844
Added support for recognizing `reference' as a keyword.


Revision 36844 - (view) (annotate) - [select for diffs]
Modified Fri Apr 18 21:55:28 2003 UTC (16 years, 4 months ago) by manus
Original Path: trunk/Src/bench/Eiffel/interface/new_graphical/text_window/text/lexer/editor_eiffel_scanner.l
File length: 10076 byte(s)
Diff to previous 32935
Added `convert' keyword support.


Revision 32935 - (view) (annotate) - [select for diffs]
Modified Fri Jul 12 00:00:19 2002 UTC (17 years, 1 month ago) by manus
Original Path: trunk/Src/bench/Eiffel/interface/new_graphical/text_window/text/lexer/editor_eiffel_scanner.l
File length: 10043 byte(s)
Diff to previous 32124
Previous integration was making parsing of ANY to failed each time we were
trying to save it in EiffelStudio. In addition of that it was allowing keyword
in a string which was not yet finished to be expanded by the editor.
Instead we rewrote the expression so that the previous problem was still fixed
and that it takes care of non-yet finished Eiffel string (see added comments
in .l file).


Revision 32124 - (view) (annotate) - [select for diffs]
Modified Mon May 20 18:40:11 2002 UTC (17 years, 3 months ago) by neilc
Original Path: trunk/Src/bench/Eiffel/interface/new_graphical/text_window/text/lexer/editor_eiffel_scanner.l
File length: 9560 byte(s)
Diff to previous 31858
Fixed string bug (now allows "%%" at end of .e file)


Revision 31858 - (view) (annotate) - [select for diffs]
Modified Sun May 5 02:50:09 2002 UTC (17 years, 3 months ago) by manus
Original Path: trunk/Src/bench/Eiffel/interface/new_graphical/text_window/text/lexer/editor_eiffel_scanner.l
File length: 9500 byte(s)
Diff to previous 30142
Replaced `Platform.Maximum_character_code' with ISE's specific `feature {CHARACTER}.Max_value'
which are semantically identical.


Revision 30142 - (view) (annotate) - [select for diffs]
Modified Wed Jan 9 23:59:43 2002 UTC (17 years, 7 months ago) by xavier
Original Path: trunk/Src/bench/Eiffel/interface/new_graphical/text_window/text/lexer/editor_eiffel_scanner.l
File length: 9502 byte(s)
Diff to previous 26913
We now display in blue only uppercase names that corresponds to known classes. This improves indexing clauses (no more unneeded blue over ISE for example), and enables users to immediately spot errors in class names when they type.


Revision 26913 - (view) (annotate) - [select for diffs]
Added Sun Aug 12 23:50:20 2001 UTC (18 years ago) by manus
Original Path: trunk/Src/bench/Eiffel/interface/new_graphical/text_window/text/lexer/editor_eiffel_scanner.l
File length: 9321 byte(s)
Merged branch `dev46_manu' to the trunc.


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

  ViewVC Help
Powered by ViewVC 1.1.23