[Github-comments] Re: [geany/geany] Not all symbols are shown in a Julia file (Issue #3341)

2023-06-01 Thread getzze via Github-comments
A bit late, but only variables defined with the `const` keyword are shown in 
the list:

```julia
const a::Int8 = 3

function f(x)
return 2x
end
```

Both `a` and `f` would appear.

Currently, global (and local) variable assignment are not identified by ctags 
(the library that is listing the symbols by type on the left), but it could be 
improved if there is a need for it (or if somebody wants to do it :D).
See the TODO list [here](https://github.com/universal-ctags/ctags/issues/2723)


-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3341#issuecomment-1572179881
You are receiving this because you are subscribed to this thread.

Message ID: 

Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-07-06 Thread getzze
I just rebased to two commits. I left the ctags test file in a separate commit 
because I am not sure it is needed, julia parser is well tested in ctags 
upstream.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2584#issuecomment-874745155

Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-06-28 Thread getzze
The issue with Lexilla is solved. It's ready to merge.
If needed, I can rebase to one commit.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2584#issuecomment-870067828

Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-06-28 Thread getzze
@getzze pushed 2 commits.

2330dae685550f752e347aea231d1b2344496803  add SCE_JULIA_TYPEOPERATOR and remove 
no-interpolaton option
897ae6ad15a9808ec039e5c147e44edcf98864e0  upstream merge


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/geany/geany/pull/2584/files/17e670ab45833ec528d9da8112f44465b7d340f9..897ae6ad15a9808ec039e5c147e44edcf98864e0


Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-06-24 Thread getzze
@getzze commented on this pull request.



> + delete this;
+   }
+   int SCI_METHOD Version() const override {
+-  return lvRelease5;
++  // Geany still uses Lexilla v4
++  //return lvRelease5;
++  return lvIdentity;
+   }
+   const char * SCI_METHOD PropertyNames() override {
+   return osJulia.PropertyNames();
+@@ -173,7 +176,9 @@ public:
+   return 0;
+   }
+ 
+-  static ILexer5 *LexerFactoryJulia() {
++  // Geany still uses Lexilla v4

corrected

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2584#discussion_r658356879

Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-06-24 Thread getzze
@getzze pushed 1 commit.

17e670ab45833ec528d9da8112f44465b7d340f9  update LexJulia patch


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/geany/geany/pull/2584/files/3b0c3ea8c1bca24435a8d9e71c0dc61e20fc46f6..17e670ab45833ec528d9da8112f44465b7d340f9


Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-06-24 Thread getzze
@getzze pushed 1 commit.

3b0c3ea8c1bca24435a8d9e71c0dc61e20fc46f6  repair CI


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/geany/geany/pull/2584/files/bc627857f1236d162cbf6419c0ba91ee29c7c7a3..3b0c3ea8c1bca24435a8d9e71c0dc61e20fc46f6


Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-06-24 Thread getzze
@getzze pushed 1 commit.

bc627857f1236d162cbf6419c0ba91ee29c7c7a3  repair CI


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/geany/geany/pull/2584/files/bfecdcb19730814463aa6c4bf224f144bdbb..bc627857f1236d162cbf6419c0ba91ee29c7c7a3


Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-06-24 Thread getzze
I pushed some changed from Lexilla (like using a new keyword list for coloring 
builtin functions).

I added a patch file in the `scintilla` folder, so the lexer works with lexilla 
v4.
Also added a ctags test file (I didn't manage to generate the binary file).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2584#issuecomment-868023625

Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-06-24 Thread getzze
@getzze pushed 3 commits.

31128dc29c9c71ed36134da4a79a96e5284a74c5  update pending PR from lexilla
bba7d67c57e2336ea9161f959480f6560272a479  add patch file to apply to 
LexJulia.cxx from lexilla to work with v4
bfecdcb19730814463aa6c4bf224f144bdbb  add ctags test file


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/geany/geany/pull/2584/files/63f4c6e6cceaf49ede29fdcc162dafd662cbe979..bfecdcb19730814463aa6c4bf224f144bdbb


Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-06-24 Thread getzze
> Yay CI works again!!
> 
> One thing you might like to consider (can be later) is a test for the ctags 
> parser, see `tests/ctags` so CI would notice if a ctags infrastructure update 
> like #2830 broke your parser.



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2584#issuecomment-867469175

Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-06-24 Thread getzze
Closed #2584.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2584#event-4933296319

Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-06-24 Thread getzze
Reopened #2584.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2584#event-4933297317

Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-06-23 Thread getzze
@getzze commented on this pull request.



> +# MIME type
+mime_type=text/x-julia
+
+# single comments, like # in this file
+comment_single=#
+# multiline comments
+comment_open=#=
+comment_close==#
+
+[indentation]
+width=4
+# 0 is spaces, 1 is tabs, 2 is tab & spaces
+type=0
+
+
+[build_settings]

Is it `[build_menu]` or `[build-menu]` ? (`filetypes.python` has '[build-menu]')

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2584#discussion_r657523876

Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-06-23 Thread getzze
@getzze pushed 1 commit.

63f4c6e6cceaf49ede29fdcc162dafd662cbe979  use LineState to lex and fold 
line-by-line


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/geany/geany/pull/2584/files/2074ecd518bab0d0787727240e129195c4ff277e..63f4c6e6cceaf49ede29fdcc162dafd662cbe979


Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-06-22 Thread getzze
@getzze pushed 2 commits.

56551cb4c84cf198f7599d104338d060edf49e53  remove julia snippets
2074ecd518bab0d0787727240e129195c4ff277e  do not change defaults


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/geany/geany/pull/2584/files/3b9238bdf21b9418fe7b69aa7b93f01817629588..2074ecd518bab0d0787727240e129195c4ff277e


Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-06-22 Thread getzze
@getzze commented on this pull request.



> @@ -129,14 +129,15 @@ comment_line_doc=comment_doc
 comment_doc_keyword=comment_doc,bold
 comment_doc_keyword_error=comment_doc,italic
 
-number=0x007f00
+number=0x808000

ok, then I can create a `number_3` color for julia numbers.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2584#discussion_r656004705

Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-06-21 Thread getzze
There are still some open issues with Lexilla: 
https://github.com/ScintillaOrg/lexilla/pull/13

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2584#issuecomment-865413598

Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-06-21 Thread getzze
@getzze commented on this pull request.



> @@ -138,3 +138,3283 @@ module=-module(%cursor%).
 export=-export(%cursor%).
 compile=-compile(%cursor%).
 include=-include(%cursor%).
+
+[Julia]

done: https://wiki.geany.org/snippets/julia/start

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2584#discussion_r655752856

Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-06-21 Thread getzze
@getzze commented on this pull request.



> @@ -153,6 +154,7 @@ identifier_4=identifier_1
 string=0xff8000
 string_1=string
 string_2=0x008000
+string_3=0x008000

this is not used

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2584#discussion_r655742379

Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-06-21 Thread getzze
@getzze commented on this pull request.



> @@ -138,3 +138,3283 @@ module=-module(%cursor%).
 export=-export(%cursor%).
 compile=-compile(%cursor%).
 include=-include(%cursor%).
+
+[Julia]

you are right, better create a page on Geany wiki with Julia snippet at 
https://wiki.geany.org/snippets/start

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2584#discussion_r655742203

Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-06-21 Thread getzze
@getzze commented on this pull request.



> @@ -129,14 +129,15 @@ comment_line_doc=comment_doc
 comment_doc_keyword=comment_doc,bold
 comment_doc_keyword_error=comment_doc,italic
 
-number=0x007f00
+number=0x808000

Sorry I didn't remember that I did that, but the `number` color 0x007f00 is 
very similar to `string_2`, which is very confusing for Julia.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2584#discussion_r655742173

Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-06-02 Thread getzze
The PR has been rebased.
The ctags parser file is identical to upstream and the scintilla lexer has 
minimal change (3 lines) because upstream is using lexilla v5 and geany is 
still at v4.
Geany-specific files need to be reviewed.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2584#issuecomment-853445680

Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-06-02 Thread getzze
@getzze pushed 2 commits.

9b7d6e4dc3d620041c6c4e024bcc96fecf2ad4df  merge upstream lexilla corrections
9b377e2e5869c0720667350f407e098dd9819b12  set SCLEX_JULIA=133 like lexilla 
upstream


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/geany/geany/pull/2584/files/eb36bae9efa1ee20e3aef8a3b4f479d4b6e81040..9b377e2e5869c0720667350f407e098dd9819b12


Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-06-02 Thread getzze
LexJulia has been merged upstream by Scintilla 
(https://github.com/ScintillaOrg/lexilla/commit/6ee6b086a1920fdafe3af41eecbd865d52162ec7
 and later commits for minor corrections).
I will push a clean rebase of this PR so it can be merged to geany.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2584#issuecomment-853152936

Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-05-20 Thread getzze
@getzze pushed 1 commit.

eb36bae9efa1ee20e3aef8a3b4f479d4b6e81040  make raw string literals list 
modificable


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/geany/geany/pull/2584/files/31bede9a57915916e1066d380925f0fef3677680..eb36bae9efa1ee20e3aef8a3b4f479d4b6e81040


Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-05-20 Thread getzze
I just pushed new commits to solve conflicts.
As @elextr said, julia ctag parser has been merged upstream but from Scintilla 
it will take much longer (they only reviewed aesthetic aspects of the code so 
far).
But you can build from source applying this PR.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2584#issuecomment-845033895

Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-05-20 Thread getzze
@getzze pushed 4 commits.

6400fe99fc439a48001b614bc27d2109e772f102  correct scintilla warnings
613d38bad18b36f6bbb2267642b40b2dcfabeb0e  merge conflict
8f9e59f14786d2ef5c135b768b18092c8edf2125  merge conflict
31bede9a57915916e1066d380925f0fef3677680  merge conflict


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/geany/geany/pull/2584/files/10cd4a645adbd33cb271b2d832342aeb6acc2d4b..31bede9a57915916e1066d380925f0fef3677680


Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-03-26 Thread getzze
Thanks for the feedback.
I pushed a patch for it, along with some other improvements:
- merge ctags from upstream
- do not highlight interpolation for raw strings
- correct folding
- add REPL autocompletion using snippets (needs to change wordchars)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2584#issuecomment-808262568

Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-03-26 Thread getzze
@getzze pushed 10 commits.

dbe2964f195b4e5f1255e7e9f830d6e452008a4b  add filetype extension
9c431fc8f2af00aaa75f8eda53983706a552f649  add snippets
671521775f66821a2caabc6a4325a7b842e56cad  correct end of macro
c4cfe82f48d215ad00fff2a8b3f3d0980ad27d74  update ctags from upstream
d3a56d90c222c85a1561039733f1e6ef85b54a0a  ctags: [geany patch] disable reftags 
roles
ce2172856effe4f429fd4557d7e16126d095e5f5  ctags: change naming
5db72695539fd60cdbf5fa3ec6d880ffe10f82f8  add as keyword
3150cdc6cd3519a2725b299098d5130ce6b24d00  add repl unicode snippets
ae47f33e23809132d02bd9c6da1f98a45d9de852  lexer: do not highlight string 
interpolation for raw strings
10cd4a645adbd33cb271b2d832342aeb6acc2d4b  lexer: correct folding


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/geany/geany/pull/2584/files/dccf5522f9945ba739d2e0b2c9743245335a65b4..10cd4a645adbd33cb271b2d832342aeb6acc2d4b


Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-01-11 Thread getzze
@getzze pushed 1 commit.

dccf5522f9945ba739d2e0b2c9743245335a65b4  merge scope from ctags


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/geany/geany/pull/2584/files/04cf6b3c16fc3cb3c6c615b843c99abd6f92b6e2..dccf5522f9945ba739d2e0b2c9743245335a65b4


Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2021-01-03 Thread getzze
@getzze pushed 2 commits.

09e8137b6f8db325289fd94b5577247446d56be7  better handling of struct with @kwdef
04cf6b3c16fc3cb3c6c615b843c99abd6f92b6e2  interpolation of all strings and 
correct folding of list comprehension


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/geany/geany/pull/2584/files/d3ec25d5be98e4b0a6e72d19a0ea8752eccee141..04cf6b3c16fc3cb3c6c615b843c99abd6f92b6e2


Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2020-12-31 Thread getzze
@AndiMD Thanks for reporting these problems! I think it would be great to 
announce it on Julia discourse.

> 1. Highlighting interpolated strings seems inconsistent: Depending on 
> using `$(var)` vs `$var` and single quote vs triple quote strings, I see 
> different results. Example:
>`"($scanPosX,$scanPosY): (k±Δk)=$(kLaserApprox) $(begin x+5 end)"`
>`"""($scanPosX,$scanPosY): (k±Δk)=$(kLaserApprox)  $(begin x+5 end)"""`

Interpolation highlighting is only done for single-quote strings, but I am 
planning to allow it in triple-quote and commands also.
For `$(var)` vs `$var`, I didn't find a way to highlight `$(` in the former so 
I ended up highlighting only what is inside the parenthesis. Because in the 
latter case there are no parenthesis, nothing is highlighted. I can try to find 
a way to highlight both, including the `$`.


> 2. Macros confuse the lexer (possibly we have to live with that, since 
> macros can have arbitrary syntax)
>Example:
> Base.@kwdef struct A
> a::Float64 = 1E-19 
> b::Float64 = 1E-22 
> end
> ```
> 

Thanks for reporting, that are actually two bugs:
- defined values for the attributes are not parsed at all
- `Base.@kwdef` is not recognized as a macro (`@kwdef` is well recognized):

```julia
@eval fun1(x) = $pi# recognizes `fun1` short function definition
Base.@eval fun1(x) = $pi   # does not recognize `fun1` short function definition
```


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2584#issuecomment-752967802

Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2020-12-25 Thread getzze
Thanks for testing it, I commited a correction, you should be able to compile 
it now. Happy to hear your feedback.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2584#issuecomment-751299095

Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2020-12-25 Thread getzze
@getzze pushed 1 commit.

d3ec25d5be98e4b0a6e72d19a0ea8752eccee141  missing constructor LexerJulia


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/geany/geany/pull/2584/files/252509e30858bc41ac06686ac9d156eec2265b6b..d3ec25d5be98e4b0a6e72d19a0ea8752eccee141


Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2020-11-24 Thread getzze
@getzze pushed 1 commit.

252509e30858bc41ac06686ac9d156eec2265b6b  solve conflicts


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/geany/geany/pull/2584/files/7f69aebeec9b4089fb122867ab0e25db94e8f66d..252509e30858bc41ac06686ac9d156eec2265b6b


Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2020-11-24 Thread getzze
@getzze pushed 5 commits.

00dba4526aa0b8ea16c5d26f38402e21ca7e9358  lexer: add unicode support identifiers
4a4cc382ddc25ee64e91a7313f6465c6ec567937  ctags: add backtick recognition
c544769be5047a6833b02f825c4fe5aec29b9055  lexer: add backtick recognition
c255b2c68728fb014c5e53bc3de7dadaa0001415  merge from ctags
7f69aebeec9b4089fb122867ab0e25db94e8f66d  update lexer


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/geany/geany/pull/2584/files/6cd8cd33b39a1ec6e9a2d9ccdc0c56a8f47a7c84..7f69aebeec9b4089fb122867ab0e25db94e8f66d


Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2020-10-03 Thread getzze
Upstream merge:
- [ ] Scintilla: https://sourceforge.net/p/scintilla/code/merge-requests/25/
- [ ] Universal-ctags: https://github.com/universal-ctags/ctags/pull/2654

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2584#issuecomment-703124785

Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2020-10-02 Thread getzze
Upstream merge:
- [ ] Scintilla Merge Request: 
https://sourceforge.net/p/scintilla/code/merge-requests/25/
- [ ] Universal-ctags PR: https://github.com/universal-ctags/ctags/pull/2654

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2584#issuecomment-703002286

Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2020-10-02 Thread getzze
@getzze pushed 2 commits.

0f25715f88764a1acc074aec071935f128560c9d  ctags: rewrite based on rust
6cd8cd33b39a1ec6e9a2d9ccdc0c56a8f47a7c84  lexer: bugs with strings


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/geany/geany/pull/2584/files/bb7fc603c1c540caac0e007d9714f5d144483586..6cd8cd33b39a1ec6e9a2d9ccdc0c56a8f47a7c84


Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2020-09-19 Thread getzze
@getzze pushed 1 commit.

bb7fc603c1c540caac0e007d9714f5d144483586  ctags: better parse functions. add 
type parsing


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/geany/geany/pull/2584/files/eb9ac1e4fdcb79a0e4798084540a2e44487eff93..bb7fc603c1c540caac0e007d9714f5d144483586


Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2020-09-18 Thread getzze
@getzze pushed 1 commit.

eb9ac1e4fdcb79a0e4798084540a2e44487eff93  lexer: bug transpose in interpolation


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/geany/geany/pull/2584/files/f1da05e2bf5380b1bb1d853647420365c889ccab..eb9ac1e4fdcb79a0e4798084540a2e44487eff93


Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2020-09-18 Thread getzze
@getzze pushed 2 commits.

59712ae8d4f06e39711847301044beae932ab83b  lexer cleanup
f1da05e2bf5380b1bb1d853647420365c889ccab  ctag: parse short functions


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/geany/geany/pull/2584/files/3539be4796fccb277f7717f07ec0407e50ee746c..f1da05e2bf5380b1bb1d853647420365c889ccab


Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2020-09-15 Thread getzze
@getzze pushed 2 commits.

8aa74a74596c6752c1d74f75a47071297f0d042a  parse symbols and string literals
3539be4796fccb277f7717f07ec0407e50ee746c  ctag: multiline strings


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/geany/geany/pull/2584/files/dca3d8510deca3853fedb7246f179f9b151cda67..3539be4796fccb277f7717f07ec0407e50ee746c


Re: [Github-comments] [geany/geany] Create julia lexer and tags parser (#2584)

2020-09-14 Thread getzze
Ok, thanks.
They will need to be tested by julia+geany users first anyway.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2584#issuecomment-692074425

Re: [Github-comments] [geany/geany] Create julia lexer, no ctags (#2584)

2020-09-11 Thread getzze
@getzze pushed 1 commit.

dca3d8510deca3853fedb7246f179f9b151cda67  Add julia tag parser


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/geany/geany/pull/2584/files/2c157760a3e158fffd5399b4d318fbe6bc07366c..dca3d8510deca3853fedb7246f179f9b151cda67


Re: [Github-comments] [geany/geany] Julia support (#434)

2020-09-11 Thread getzze
I think it can be done in the lexer, by parsing the `:` character.

If I understood correctly, the ctags parser is used for completion, it would be 
great to implement it also.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/434#issuecomment-691330215

Re: [Github-comments] [geany/geany] Julia support (#434)

2020-09-11 Thread getzze
I made a pull-request with a lexer I just made using Matlab, Python and other 
existing lexers.
So far:

- [X] using splatting `...` and `%` make the end of the line being recognized 
as comment
- [X] parse `begin` and `end` as numbers inside indexing brackets, so code 
folding works.
- [X] complex strings with interpolation are not correctly parsed.
- [X] macros are not colored
- [ ] symbols are not recognized as special type (like strings).
- [ ] type annotations with ::, <: are not emphasized


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/434#issuecomment-691247566

[Github-comments] [geany/geany] Create julia lexer, no ctags (#2584)

2020-09-11 Thread getzze
resolves #434
You can view, comment on, or merge this pull request online at:

  https://github.com/geany/geany/pull/2584

-- Commit Summary --

  * Create julia lexer, no ctags

-- File Changes --

M data/Makefile.am (1)
M data/filedefs/filetypes.common (4)
A data/filedefs/filetypes.julia (62)
M scintilla/Makefile.am (1)
M scintilla/include/SciLexer.h (14)
M scintilla/include/Scintilla.iface (16)
A scintilla/lexers/LexJulia.cxx (536)
M scintilla/src/Catalogue.cxx (1)
M src/filetypes.c (1)
M src/filetypes.h (1)
M src/highlighting.c (10)
M src/highlightingmappings.h (32)

-- Patch Links --

https://github.com/geany/geany/pull/2584.patch
https://github.com/geany/geany/pull/2584.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2584


Re: [Github-comments] [geany/geany] Julia support (#434)

2020-09-09 Thread getzze
> If that's the case, besides being over 5 years old, what are the issues with 
> the custom filetype proposed above by @peter1000? Generally, what's needed to 
> make a good Julia filetype file?

I'm using it everyday and probably I got used to it but I see 3 big issues that 
require writing a Scintilla lexer specially for Julia:
- using splatting "..." of varargs makes the end of the line being recognized 
as comment and lose coloration.
- the "end" keyword sometimes doesn't match the beginning of the block (for, 
if, function...), I don't know if it's because you can use it for indexing 
also, but the code collapsing function is not working at all because of that.
- complex strings with interpolation is not correctly parsed, making all the 
line losing color and even sometimes the next lines.

Also minor problems are:
- symbols are not recognized as special type (like strings) so it is not easy 
to find them in the code.
- type annotations with ::, <: are not emphasized
- macros are not colored either

I tried to work on the Scintilla lexer but the documentation is too obscure.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/434#issuecomment-689809782