Search found 13 matches

by Shando
15.12.2018 01:52
Forum: Lexers
Topic: Lexer and Autocomplete for Falcon
Replies: 12
Views: 5162

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
by Shando
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
by Shando
10.12.2018 11:06
Forum: Lexers
Topic: if .. elif .. end if
Replies: 13
Views: 4873

Hi Alexey,

I'll check tomorrow (Australian time).

Shando
by Shando
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 = ...
by Shando
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...
by Shando
02.11.2018 11:09
Forum: Lexers
Topic: Lexer and Autocomplete for Falcon
Replies: 12
Views: 5162

Hey buddy, Sorry for not getting back to you sooner. I've just started a new job and don't have much time for anything else at the moment. Thanks for doing this. I'll check it out. Shando PS: The Single Line versions do not show in the tree correctly. For example: function f1(): > "I am f1"...
by Shando
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...
by Shando
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:

Code: Select all

if first
    > "First Parameter: ", first
end

if second: > "Second Parameter: ", second
Thanks in advance

Shando
by Shando
21.10.2018 11:17
Forum: Lexers
Topic: Lexer and Autocomplete for Falcon
Replies: 12
Views: 5162

Hi Alexey,

Thanks for the pointers, I'll fix them up and repost the revised file (hopefully sometime this week).

With regards to 2) I did fill this in but for some reason the Lexer Editor seems to have removed them, even though they appeared correctly in the preview?

Thanks again.

Shando
by Shando
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...