Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/JuliaLang/JuliaSyntax.jl

The Julia compiler frontend
https://github.com/JuliaLang/JuliaSyntax.jl

Improve error message for missing closing tokens (#397)

When a missing closing token like `)`, `]` or `}` is encountered we want
the "Expected `)`" err...

a6f2d1580f7bbad11822033e8c83e607aa31f100 authored about 1 year ago by Claire Foster <[email protected]>
Fix crashes due to lexing ambiguity of string delimiters (#394)

There are some lexing ambituities in primes vs cmd delimiters. We break
these with a simple rul...

acb609d803379df6b003133d81884c7e8314ac90 authored about 1 year ago by Claire Foster <[email protected]>
Fix bug parsing unary subtypes with newlines (#393)

In expressions like `"a +\n\n<:"` the presence of `peek(ps, skip_newlines=true)` was
inconsiste...

576975544c82737967e60aa69f8b0ef347013ca3 authored about 1 year ago by Claire Foster <[email protected]>
Fix crash when parsing malformed `function(where` (#388)

When word operators are parsed as atoms (ie, identifiers), the kind
should be remapped as such....

a6b94d2e0e1329b33dcbc7e624df85cf1978e65d authored about 1 year ago by Claire Foster <[email protected]>
Fix highlighting of ranges which start with non-ascii chars (#387)

This could cause the parser hook to crash on certain inputs.

57575350a2eb4031fe62ccee876d1c5ecd2475e6 authored about 1 year ago by Claire Foster <[email protected]>
Disallow newline between contextual keyword pairs in parentheses (#386)

Ensure that we never treat things like `"mutable\nstruct"` as a mutable
struct definition, even...

0df34c9a8438cd4762fb3ceafe6eeac486eee748 authored about 1 year ago by Claire Foster <[email protected]>
Fix error in hooks when parsing incomplete `x.` (#385)

Also add another fuzzing tool

1351d70da624159115dcf3d5f0eb1e1764a9be34 authored about 1 year ago by Claire Foster <[email protected]>
Fix crash with empty macro name when parsing `"@("` (#382)

e3df852eabc03b2402dc3e4d638f3565d00691d1 authored about 1 year ago by Claire Foster <[email protected]>
Generalize fuzz testing tools (#379)

This rearrangement allows us to fuzz test the hooks (which use the low
level parser API) as wel...

cfdac5fa50b735969a3662e1ddd61460c0e5bd15 authored about 1 year ago by Claire Foster <[email protected]>
handle ZWJ and emoji sequences, don't break identifiers within graphemes (#372)

* handle ZWJ and emoji sequences

* forbid ZWNJ at end

* fix tests on Julia < 1.5

* asci...

05c594bdd2609b135098f2e1931c76200bd789fc authored about 1 year ago by Steven G. Johnson <[email protected]>
Fix Expr conversion of erroneous operator dot call (#374)

48ddfc6cc754c4450ed234ca49afb5b347bdc591 authored about 1 year ago by Lionel Zoubritzky <[email protected]>
Fix diagnostics printing when `pwd()` doesn't exist (#373)

Computing the file URL for pretty printing using `abspath` can fail when
the current working di...

4d990b68696f2df6ff5cab6d41104a72ac137c9e authored about 1 year ago by Claire Foster <[email protected]>
Always `emit()` nodes with zero children, don't `bump()` them (#371)

Cleanup weird cases where the parser would `bump()` interior nodes into
the output stream rathe...

1b048aad2a3a3e2e9d7f5053ff51024f08ca308c authored about 1 year ago by Claire Foster <[email protected]>
Better recovery when parsing empty characters (#369)

Consume the trailing ' in empty characters '' for better error recovery
when `ignore_errors=tru...

96137ed1efbefde3198d981250be9f0698beeabb authored about 1 year ago by Claire Foster <[email protected]>
Merge pull request #358 from JuliaLang/lh/flisp-fallback-hint

Add a "not your fault" hint to the fallback to flisp error

b941fc083a524a063c53c24a9dad0d3461b85a03 authored about 1 year ago by Sebastian Pfitzner <[email protected]>
Update src/hooks.jl

Co-authored-by: Sebastian Pfitzner <[email protected]>

e621db48cc08bc87a6c7b90060f30c05945b7bda authored about 1 year ago by Lilith Orion Hafner <[email protected]>
Use triple quotes

33cdcbecc22a4e30cb1e18c2db17bf504eaa23f1 authored about 1 year ago by Lilith Orion Hafner <[email protected]>
Fix SyntaxNode->Expr conversions of unterminated cmd strings (#367)

3621603f623e3e3fbc6586afce020f5a0d4e833a authored about 1 year ago by Claire Foster <[email protected]>
add a "not your falut" hint to the fallback to flisp error

ff670b5c22f55e58a388df2ae6de448728d09f6e authored over 1 year ago by Lilith Hafner <[email protected]>
Merge pull request #347 from JuliaLang/LilithHafner-patch-1

Fix typo in docstring

ca2b8e36a14078e94d57182b637060576fa2a700 authored over 1 year ago by Sebastian Pfitzner <[email protected]>
Fix typo in docstring

a57f0937b714ae50d21b66f33b8b18d581c8b44c authored over 1 year ago by Lilith Orion Hafner <[email protected]>
Bump version to 0.4.6

2ec75c7f476686c43356b324115c6d3bd1100d7c authored over 1 year ago by Claire Foster <[email protected]>
Only show the first parse error (#344)

Parser recovery commonly results in several errors which refer to much
the same location in the...

df84e02381b741f9982399b24c1c7bf2fbd630a2 authored over 1 year ago by Claire Foster <[email protected]>
Remove `num_tokens` argument from `bump_glue` (#338)

94bad1ae40a0a3c625d6d98ec820c447df4fcc2b authored over 1 year ago by Xianda Sun <[email protected]>
Make `SourceFile.code` infer concretely (#337)

84ccafe9293efb643461995a5f4339ae5913612d authored over 1 year ago by Tim Holy <[email protected]>
Add public keyword (#320)

Add public as a contextual keyword that is parsed as a keyword only when it is both at the top-l...

ad9b16681389dbe3f21a89897f7a86dec793f72a authored over 1 year ago by Lilith Orion Hafner <[email protected]>
Fix code block indentation (#326)

The code block has to be indented at the same level as the list
elements, otherwise Documenter ...

fc572f95c250f802c6721f90061125b05422965e authored over 1 year ago by Sergio A. Vargas <[email protected]>
AST: Rearrange `do` to sit inside `call`/`macrocall` (#322)

`do` syntax is represented in `Expr` with the `do` outside the call.
This makes some sense synt...

3fe86d37b656bddf12ddcad1f0b905c6652c0ae5 authored over 1 year ago by Claire Foster <[email protected]>
AST: parse `a.b` as `(. a b)` (#325)

I was working a bit on macro expansion - particularly `quote`
(quasiquote) expansion with `$` i...

296cd5ee4cded19cec84d8328da0b5ee1ce98f05 authored over 1 year ago by Claire Foster <[email protected]>
Update .gitignore

5aad8126ac8380981ef8db75c01fea579956caff authored over 1 year ago by Claire Foster <[email protected]>
Clean up README a bit

Add some links to external documents and update the status section a
bit. Fixes #312.

5af75f75c51ea6e3a4a10e8ed8218ce474b6e7f5 authored over 1 year ago by Claire Foster <[email protected]>
Fix parse error with broken do syntax (#323)

6da0fc487ad5af13fc4b1dd82679b4501a28c794 authored over 1 year ago by Claire Foster <[email protected]>
Fix diagnostics covering trailing text (#317)

Diagnostics may sometimes cover trailing text which wasn't consumed. For example,
`parseatom(")...

747702b705e59ff517c10dec6fb2f3cd4f842345 authored over 1 year ago by Claire Foster <[email protected]>
Bump version to 0.4.5

8731bab86f14762cca8cf24224d8c7a6a89c21c5 authored over 1 year ago by Claire Foster <[email protected]>
Merge pull request #311 from JuliaLang/c42f/fix-SourceFile-offsets

Fixes for `SourceFile` byte offsets

c076e100074267ab49d3401f064805e5be5b9e52 authored over 1 year ago by Claire Foster <[email protected]>
Fixes for `SourceFile` byte offsets

This fixes a crash formatting error messages when core_parse_hook is
used to parse a piece of br...

325a850efdb5181801ad4ee8ace26e8baeb23802 authored over 1 year ago by Claire Foster <[email protected]>
Cleanup: rename textbuf -> unsafe_textbuf

fd9075d1220ed83110ca9d1cf1893e356231212f authored over 1 year ago by Claire Foster <[email protected]>
Bump version to 0.4.4

ec51994833d78f8c5525bc1647f448dfadc370c1 authored over 1 year ago by Claire Foster <[email protected]>
Add mailmap file

🏳️‍⚧️

06282a029ed4328a6839cfa6f81b41430a0ad5d6 authored over 1 year ago by Claire Foster <[email protected]>
Fix line numbers with source fragments (#310)

When parsing source code fragments incrementally with

* `Meta.parse(str, index)` or
* `parse...

b9330132969baa099a5d0a4c9cb387cf0ff9adf1 authored over 1 year ago by Claire Foster <[email protected]>
Parse `function (:*=(f))() end` syntax compatibly (#309)

Slightly modify the anonymous function arg list disambiguation rules so
that the function signa...

b0a283766162a00f4259c98ccc6fa348095a3d1c authored over 1 year ago by Claire Foster <[email protected]>
Also disallow bare generators in interpolation syntax (#307)

This should be the only other case which needs to be disallowed - the
reference parser uses par...

8a47045e27d41d72a782a902c2a858ba41fffd03 authored over 1 year ago by Claire Foster <[email protected]>
Add error for invalid string interpolation syntax (#306)

Commas and semicolons are not allowed within string interpolation
brackets. For example `"$(x, ...

af64b6d0f164e38bf36b3b167dc217c065ada18f authored over 1 year ago by Claire Foster <[email protected]>
Allow parsing of custom string types in core parser hook (#304)

The simplest method of doing this is to convert to String, so that's
what we do here, using inv...

e3e447da2fd849124bc4e520eb42a1f541f9bfce authored over 1 year ago by Claire Foster <[email protected]>
Normalize `global (x,y)` syntax during `Expr` conversion (#303)

The reference parser accepts this syntax and normalizes it eagerly. So
we should do the same ra...

7e26d8b3f0f011d45744a09622aed1984a373655 authored over 1 year ago by Claire Foster <[email protected]>
Improvements to General registry test tools (#302)

* Use a separate directory for tar files vs unpacked packages
* Avoid crashing with overlong co...

219fa05226bee8b7b2bc0efe32cfee21fe431d22 authored over 1 year ago by Claire Foster <[email protected]>
Add a few missing docstrings for API docs (#301)

c2e3a40a14418ce2dad3728f5b8498abed406326 authored over 1 year ago by Claire Foster <[email protected]>
Small fix to make JuliaSyntax work when Int === Int32 (#299)

Also add 32 bit arches to CI.

f6431b842645b3c42b18168326d7215f3846310b authored over 1 year ago by Claire Foster <[email protected]>
Add trailing line numbers to loops in Expr conversion (#298)

These trailing line numbers are used to attribute coverage to the `end`
of the loop for parts o...

2c544c4c4bc7c2e33130ab41ac72d7c3906dcbb3 authored over 1 year ago by Claire Foster <[email protected]>
Fix URLs in doc make.jl

e7fe3526666294bb587a8e180c9b49c071172314 authored over 1 year ago by Claire Foster <[email protected]>
Move docs from readme to docs and add a doc build (#297)

+ extract docstrings from the public API and get them onto an API
reference page.

9a512d31d89e7f38fe93c3c74beefaedf20cd1d2 authored over 1 year ago by Claire Foster <[email protected]>
Fix for short form function line numbers (#296)

Ensure we add short form function line numbers to the Expr when there's
a block on the right ha...

68d3fbd300fd3d03e69bfc1e99bb7eb7dcd47030 authored over 1 year ago by Claire Foster <[email protected]>
Minor tweaks to remove method ambiguities and argument ambiguities (#295)

These were harmless enough, but should satisfy the tests in Base.

Also remove a display_error...

4353bd2fd245007dab3f7496d3c90ada78d6becb authored over 1 year ago by Claire Foster <[email protected]>
Remove talk thumbnail

iick 😬

671841b018d198937e3902ab0694d772ee312e4d authored over 1 year ago by Claire Foster <[email protected]>
Bump to 0.4.3

40c7a88bc29b9730e4c780cb675ed57c6d053d09 authored over 1 year ago by Claire Foster <[email protected]>
Throw Meta.ParseError from Meta.parse() in Julia 1.10 (#294)

New hooks added in https://github.com/JuliaLang/julia/pull/46372 allow
us to

* Add `JuliaSyn...

890a62b2b552a0d2496be870c9c9e157819f9e61 authored over 1 year ago by Claire Foster <[email protected]>
Fix `showerror` to include backtraces (#293)

Why this method was there, I don't know!

f5b287a666b8c9bbe3e8deab2d1770a0bea1d065 authored over 1 year ago by c42f <[email protected]>
Merge pull request #292 from filtron/patch-1

fix typo in readme README.md ?

37c53b1de43ec2fc01ad8ee1fe55dfa44edaefea authored over 1 year ago by Sebastian Pfitzner <[email protected]>
fix typo in readme README.md ?

13c8ad2093dea886dbdd7b55bd42cb8aa48f629e authored over 1 year ago by Filip Tronarp <[email protected]>
Bump version to 0.4.2

2e2837acc12acfb38e9e225171987f76fd08317c authored over 1 year ago by c42f <[email protected]>
Additional syntax tests from Base test/syntax.jl (#291)

abafa25b909a59eaedd1d76d62be8601632504e3 authored over 1 year ago by c42f <[email protected]>
Clean up fixed world age mechanism to use closures (#290)

Using a closure here to hold the fixed world age seems nicer than a
global within the JuliaSynt...

64b5afa207246d595fd175fed2ce4b64628db150 authored over 1 year ago by c42f <[email protected]>
Make invalid UTF-8 an error in comments and strings (#289)

This is the behavior of the reference parser.

200145f1c4b14328820b860d010b523cd2481c61 authored over 1 year ago by c42f <[email protected]>
bump version to 0.4.1

bbba1ef546a6f9f262e6a07e9164cd9d71f4c5a2 authored over 1 year ago by c42f <[email protected]>
Disallow unbalanced bidirectional unicode (#288)

Disallow unbalanced Unicode bidirectional formatting directives within
strings and comments, to...

4d2e5613bcc496a9c3542847a98b189ca04f2ea0 authored over 1 year ago by c42f <[email protected]>
Re-add precompile (#287)

Oops! Accidentally commented out previously :-(

6e3782fea5a97b841dd7d18b54e4642ac6041ef8 authored over 1 year ago by c42f <[email protected]>
More precise errors for bad unicode characters (#286)

Ported from equivalent errors in the reference parser

385beb161c2ffe12c847dda2a0e9928f51c7b4cc authored over 1 year ago by c42f <[email protected]>
Disallow juxtaposition of strings with blocks (#285)

Disallow syntax like `"a"begin end`. Add a few more tests for
juxtapositon.

9a796bf7f2b4da027ea0e3c42bea31b4f74d0aae authored over 1 year ago by c42f <[email protected]>
Fixes for short form function locations (#284)

* Bump trivia after `=` so we see the correct line for functions in
multiple-assignments like...

428b291a07ccb4d295a246d3aefb84cf17bbffc6 authored over 1 year ago by c42f <[email protected]>
Allow `var` identifier as exception name in catch (#282)

b5971af97c01b3ff734df76f735cf4a1b598f3c4 authored over 1 year ago by c42f <[email protected]>
Fix for block-vs-parameters in prefix call syntax (#281)

Expressions like `+(;;)` are ambiguous between parsing as prefix calls
with an empty block, vs ...

56842946e03a697700bf8da574cc1bbca5c18481 authored over 1 year ago by c42f <[email protected]>
Reference parser compat: Make toplevel error Exprs more compatible (#280)

When encountering a toplevel error, the reference parser
* truncates the top level expression a...

569abc3e4cf999c6e4a93d2191c7abbfdf608f68 authored over 1 year ago by c42f <[email protected]>
Fixes for line number node insertion in short form blocks (#279)

Copy some peculiar behaviors of the reference parser for compatibility:
* Top level blocks like...

9e9e1a1ce4a0bd061d6dfdc7e7991a80a3b17b0d authored over 1 year ago by c42f <[email protected]>
Small fix for `Expr(:incomplete)` detection (#278)

This off-by-one error prevented incomplete detection from working for
trailing single-character...

0dcca2a4561ebb5868b425973d25d196c0d35e5a authored over 1 year ago by c42f <[email protected]>
Normalize ℏ (\hslash) to ħ (\hbar) (#277)

See upstream PR https://github.com/JuliaLang/julia/pull/49559

cb0a62f43ec0aac9d2d5a0ea851a5a70060c348c authored over 1 year ago by c42f <[email protected]>
== operator for green trees (#275)

Also add some more direct GreeNode tests

2a0efadc0008ad6b6f35800bd72b92bb437b18d7 authored over 1 year ago by c42f <[email protected]>
Move remaining Expr tests to test/expr.jl (#274)

53dd9d3b869627870113273b04be77fedeb412f2 authored over 1 year ago by c42f <[email protected]>
Additional operators from upstream (#273)

See upstream PRs

* https://github.com/JuliaLang/julia/pull/47647
- `⟇` `\veedot` operato...

2634aca6f37b84aec84228dcb9b8465dc3db600b authored over 1 year ago by c42f <[email protected]>
Merge pull request #272 from JuliaLang/c42f/operator-predicate-rewrite

Cleanup and fix operator predicates

d79b9e9642f99d484c654a992846b77c44faaf69 authored over 1 year ago by c42f <[email protected]>
fixup! Tests for numeric constants and dots

cddc1976fdf01b64abc70bf0e6670065c0efdec2 authored over 1 year ago by c42f <[email protected]>
Relocate code from tokenize_utils.jl to tokenize.jl

Now that this code is much cleaner and shorter it makes sense to have
the whole lexer in one file.

39943954bf9aad391ada323502da8fc76841e9bc authored over 1 year ago by c42f <[email protected]>
Cleanup and fix operator predicates

Remove big lists of operator kinds and inscrutable hardcoded unicode
ranges in predicates. Inste...

b39008afee0057883f6ee6ccc865716eb34aca75 authored over 1 year ago by c42f <[email protected]>
Tests for numeric constants and dots

69ec1d98e0eae4ba173bf8e4ded460f8dcae78e6 authored over 1 year ago by c42f <[email protected]>
Clean up BEGIN/END markers in kinds

7f496146aa539baab6b8627437edc7e4beae2d0e authored over 1 year ago by c42f <[email protected]>
Fix token error ranges + highlighting for multibyte chars (#271)

8f8ba0dd5d19b61ff5b0fa3fb9eaaf2b5db65c3c authored over 1 year ago by c42f <[email protected]>
Bump version to 0.4

b1c6d541ee41b0451d151a2074ca2a00f6c6e59c authored over 1 year ago by c42f <[email protected]>
Remove `K"parens"` from `SyntaxNode` (#269)

Another approach to fix #239.

Elide all `K"parens"` nodes from the `SyntaxNode` tree, replaci...

3bd6dff679eeee47c3ff79cca65725af32a1a6d9 authored over 1 year ago by c42f <[email protected]>
Construct Expr directly from ParseStream (#268)

Generalize `build_tree` so that we can more easily construct tree types
other than `GreenNode`....

5bb321a66ec3e9ab21d3fff0a6f6b8bc473268d2 authored over 1 year ago by c42f <[email protected]>
Fix spurious warning for `import A.:` (#267)

975cd1d74947ca8b4cef8421d4f8d60762bfcc20 authored over 1 year ago by c42f <[email protected]>
fix minor bug in check_all_packages

e16c739d8662f3869d17a0cb8c2412dc34167958 authored over 1 year ago by c42f <[email protected]>
Fix combined cartesian / flattened generators (#263)

The combined cartesian/flattened generator syntax is a very unusual use
case found in only one ...

8098cb04b4b61c31a5d96dcde8e4759b22a81593 authored over 1 year ago by c42f <[email protected]>
Add braces node around `T` in `x where {T}` (#264)

This allows `x where T` to be distinguished from `x where {T}` easily
which should be quite hel...

4d9c50a4a38fc43f3a44143ef8e4d3e76823ba4b authored over 1 year ago by c42f <[email protected]>
Minor fixes to test tools (#262)

* Avoid crash in heuristic Expr comparisons
* reduce_tree(text) returns text not a tree

d18dc3f0c5c110ec397f49f59c2ed9a859dbdc04 authored over 1 year ago by c42f <[email protected]>
Improve error message for closing tokens in parse_atom (#261)

Fixes #114

7445401c9013ec9300b409deea3dd00791861c76 authored over 1 year ago by c42f <[email protected]>
Fixes for `Expr(:incomplete)` detection (#260)

Fix #110

96c9440fa12c507a60c0be5c51942cec02d258dc authored over 1 year ago by c42f <[email protected]>
Support for lineno in core parser hooks (#259)

Closes #241

4fb97b8b0a1b0f0c431cea73892d4fc37b68903c authored over 1 year ago by c42f <[email protected]>
avoid a runtime dispatch when converting to expr (#257)

694d7c222630b560956918d1fb704c605d904379 authored over 1 year ago by Kristoffer Carlsson <[email protected]>
specialize on the number of varargs for `bump_split` (#254)

3490e1527e8a773d20856489ea3631ec8861c82e authored over 1 year ago by Kristoffer Carlsson <[email protected]>
avoid a Core.Box in `_to_expr` (#256)

4381fa6e2e8276ccd4d9b989316e926b1e163cea authored over 1 year ago by Kristoffer Carlsson <[email protected]>
make the global `_token_error_descriptions` variable const (#255)

52a976ec2024540da32b25c9db2e2e5a2cc2bcd4 authored over 1 year ago by Kristoffer Carlsson <[email protected]>