| Age | Commit message (Collapse) | Author |
|
shebang that includes "ruby"
(https://github.com/ruby/prism/pull/4110)
* Clarify the documentation of -x, it always searches a shebang that includes "ruby"
* Update one more occurence
---------
https://github.com/ruby/prism/commit/0cdf579295
Co-authored-by: Earlopain <14981592+Earlopain@users.noreply.github.com>
|
|
Followup for https://bugs.ruby-lang.org/issues/20409
|
|
utf-8 is the default for source files but can be overwritten via options
https://github.com/ruby/prism/commit/355f451528
|
|
As well as `putchilledstring` as `dupchilledstring`.
This is more consistent with similar `duparray` and `duphash`
instructions and better reflect it's behavior.
|
|
* In file included from /usr/include/string.h:535,
from include/prism/internal/arena.h:12,
from src/prism.c:6:
In function 'memset',
inlined from 'lex_mode_push_regexp' at src/prism.c:290:5:
.../string_fortified.h:59:10: error: '__builtin_memset' offset [26, 34] from the object at 'lex_mode' is out of the bounds of referenced subobject 'breakpoints' with type 'uint8_t[7]' {aka 'unsigned char[7]'} at offset 18 [-Werror=array-bounds]
https://github.com/ruby/prism/commit/2908c1c6c5
|
|
For [Bug #20409]
https://github.com/ruby/prism/commit/4848eb344e
|
|
Same handling as for `yield`. Fixes [Bug #21988]
https://github.com/ruby/prism/commit/2dd20183ad
|
|
It can only ever be one of these two
https://github.com/ruby/prism/commit/f871ce0260
|
|
This path avoids the sources getting wiped out during `mvn clean`,
since they are not generated during the maven build.
This patch also moves the generated WASM build under src/main/wasm
since it is really a source file and not a test file. It will not
be included in the built artifact.
https://github.com/ruby/prism/commit/08dba29eb5
|
|
I've been seeing this for a while now:
```
../../../../ext/prism/../../src/memchr.c: In function ‘pm_memchr’:
../../../../ext/prism/../../src/memchr.c:35:16: warning: return discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
35 | return memchr(memory, character, number);
| ^~~~~~
```
https://github.com/ruby/prism/commit/a3b1f10dbc
|
|
|
|
|
|
https://github.com/ruby/prism/commit/6069d67d22
|
|
We still need to do it eagerly when the result will be frozen, same
as for locations.
Fixes the following error for the added test:
> FrozenError: can't modify frozen Prism::ASCIISource: #<Prism::ASCIISource:0x00007ff9d57586f0 @source="1 + 2", @start_line=1, @offsets="\x00\x00\x00\x00">
https://github.com/ruby/prism/commit/0667d23f4f
|
|
https://github.com/ruby/prism/commit/781ecf4338
|
|
https://github.com/ruby/prism/commit/80220a9d6a
|
|
https://github.com/ruby/prism/commit/3349087895
|
|
https://github.com/ruby/prism/commit/410a623cdf
|
|
https://github.com/ruby/prism/commit/f77dc15864
|
|
They can take a block and so the keyword location is not always the entirety of the node.
You can get it by constructing a location that is just the first 5 characters
but why not have it be provided by prism?
https://github.com/ruby/prism/commit/878d79eb8c
|
|
https://github.com/ruby/prism/commit/31c71e7a40
|
|
|
|
https://github.com/ruby/prism/commit/3c89c5606d
|
|
This uses the JRuby rake-maven-plugin to generate the templates
as part of the Maven build. The generated output for the Java
templates will be under java/api/target/generated-sources/java.
https://github.com/ruby/prism/commit/b257151391
|
|
* The Loader API lives under java/api.
* The current native endpoint for the Prism shared library lives
under java/native.
* The WASM build and binding lives under java/wasm.
The libraries will be released together but can be developed and
snapshotted independently. Users that copy the source from the
previous java/ will want to grab both java/api/src/main/java and
java/native/src/main/java contents.
https://github.com/ruby/prism/commit/03358d5bcf
|
|
* Allocate array of byte[] as byte[length][].
* Default JAVA_BACKEND to "default" with "truffleruby" the custom
option.
https://github.com/ruby/prism/commit/5f29860bb7
|
|
* JAVA_STRING_TYPE and related change to IDENTIFIER
* TruffleRuby still uses java.lang.String
Fixes https://github.com/ruby/prism/pull/4009
https://github.com/ruby/prism/commit/32028c52c5
|
|
|
|
* See https://github.com/ruby/prism/issues/3861
https://github.com/ruby/prism/commit/3f6014dc53
|
|
https://github.com/ruby/prism/commit/efe36fbc46
|
|
* Allocate array of byte[] as byte[length][].
* Default JAVA_BACKEND to "default" with "truffleruby" the custom
option.
https://github.com/ruby/prism/commit/6ad180a00d
|
|
* JAVA_STRING_TYPE and related change to IDENTIFIER
* TruffleRuby still uses java.lang.String
Fixes https://github.com/ruby/prism/pull/4009
https://github.com/ruby/prism/commit/cbe91a3f36
|
|
https://github.com/ruby/prism/commit/56cdcbbb8c
|
|
https://github.com/ruby/prism/commit/9df357af89
|
|
https://github.com/ruby/prism/commit/bbcb5690ce
|
|
https://github.com/ruby/prism/commit/3cffc44510
|
|
https://github.com/ruby/prism/commit/588f41ed6b
|
|
Prism changed structure quite a bit. Most of the previously-public
structs are now opaque. This requires quite a bit of changes
internally.
It also triggered some unrelated changes, which were necessary
because Prism's main header used to pull in standard headers. So
box.c and jit.c are now no longer transitively getting all the
headers they needed.
|
|
https://github.com/ruby/prism/commit/ba16ae2256
|
|
https://github.com/ruby/prism/commit/eb1d518736
|
|
https://github.com/ruby/prism/commit/eb398af793
|
|
https://github.com/ruby/prism/commit/0c6494a3e1
|
|
https://github.com/ruby/prism/commit/603e482c10
|
|
https://github.com/ruby/prism/commit/f50c25b5c1
|
|
pm_constant_id_list_append, and pm_string_owned_init
https://github.com/ruby/prism/commit/a52c48186e
|
|
https://github.com/ruby/prism/commit/d4a3ef9e43
|
|
https://github.com/ruby/prism/commit/6ba2c6424e
|
|
https://github.com/ruby/prism/commit/717e4e738d
|
|
https://github.com/ruby/prism/commit/94d16c61cf
|
|
https://github.com/ruby/prism/commit/1c1e94849e
|