Hi Alexey,
I've made the relevant changes to your version:
https://1drv.ms/u/s!Au7DMGV6totzgoZWH4qhMPs-dFLX3g
I've also updated the Autocomplete to cover (almost) the entire Falcon language.
HTH
Shando
Search found 13 matches
- 15.12.2018 01:52
- Forum: Lexers
- Topic: Lexer and Autocomplete for Falcon
- Replies: 12
- Views: 5162
- 11.12.2018 04:21
- Forum: Lexers
- Topic: if .. elif .. end if
- Replies: 13
- Views: 4873
Sorry, looks like the downloadable one hasn't been updated.
Here's the updated version:
https://1drv.ms/u/s!Au7DMGV6totzgoZWH4qhMPs-dFLX3g
Shando
Here's the updated version:
https://1drv.ms/u/s!Au7DMGV6totzgoZWH4qhMPs-dFLX3g
Shando
- 10.12.2018 11:06
- Forum: Lexers
- Topic: if .. elif .. end if
- Replies: 13
- Views: 4873
- 08.12.2018 22:03
- Forum: Lexers
- Topic: if .. elif .. end if
- Replies: 13
- Views: 4873
OK, looks like you'll need to add the following rules: PROPERTIES = 'if end' as a 'Range End' with a 'Block Offset' of 1 - CONDITIONS = 'id' and Keys List = 'elif', 'else', end' PROPERTIES = 'if' as a 'Range Start' with a 'Range End' of 'if end' - CONDITIONS = 'id' and Keys List = 'if' PROPERTIES = ...
- 08.12.2018 21:45
- Forum: Lexers
- Topic: if .. elif .. end if
- Replies: 13
- Views: 4873
@jmp0x2a Do you mean you want to fold like this: if x = 1 then Do something elif x= 2 then Do something else else Do this end folded: if x = 1 then elif x= 2 then else end where each part can be folded individually? If so, the Falcon Lexer can do this. In the rules there are: 1) a standard 'end' rul...
- 02.11.2018 11:09
- Forum: Lexers
- Topic: Lexer and Autocomplete for Falcon
- Replies: 12
- Views: 5162
- 26.10.2018 12:19
- Forum: Lexers
- Topic: How to create Rules for 2 Versions
- Replies: 3
- Views: 2014
Hi Alexey, Thanks for the reply. I've tried what you suggested, but must be doing something wrong as I can't get it to work... Basically, the grammar is as follows: if <expression> <eol> <statement_list>* <elif_or_else>* <end> <eol> and if <expression> <colon> <statement> <eol> * = can be multiple a...
- 25.10.2018 21:09
- Forum: Lexers
- Topic: How to create Rules for 2 Versions
- Replies: 3
- Views: 2014
How to create Rules for 2 Versions
Hi all,
How would I create Rules for the following variations of the same statement:
Thanks in advance
Shando
How would I create Rules for the following variations of the same statement:
Code: Select all
if first
> "First Parameter: ", first
end
if second: > "Second Parameter: ", second
Shando
- 21.10.2018 11:17
- Forum: Lexers
- Topic: Lexer and Autocomplete for Falcon
- Replies: 12
- Views: 5162
- 21.10.2018 06:35
- Forum: Lexers
- Topic: Lexer and Autocomplete for Falcon
- Replies: 12
- Views: 5162
Lexer and Autocomplete for Falcon
Hi all, Just letting you know that I've created a Lexer & Autocomplete file for the Falcon Programming Language ( http://www.falconpl.org/index.ftd?page_id=contacts ). I'm still getting to grips with this language, so it may not be 100% accurate, but when testing in CudaText it seems to do a rea...