Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more functionality to the ErLang parser #2390

Merged
merged 3 commits into from
Dec 22, 2023

Conversation

LaurentGoderre
Copy link
Contributor

@LaurentGoderre LaurentGoderre commented Dec 2, 2023

Functionality:

  • Empty lists
  • Single quote strings
  • Comments

This allow supporting this erlang file from RabbitMQ (edited for brevity)

{application, 'rabbit', [
	{description, "RabbitMQ"},
	{vsn, "3.12.10"},
	{id, "v3.12.9-9-g1f61ca8"},
	{modules, ['amqqueue','background_gc']},
	{optional_applications, []},
	{env, [
	    {memory_monitor_interval, 2500},
	    {disk_free_limit, 50000000}, %% 50MB
	    {msg_store_index_module, rabbit_msg_store_ets_index},
	    {backing_queue_module, rabbit_variable_queue},
	    %% 0 ("no limit") would make a better default, but that
	    %% breaks the QPid Java client
	    {frame_max, 131072},
	    %% see rabbitmq-server#1593
	    {channel_max, 2047}
	  ]}
]}.

Signed-off-by: Laurent Goderre <laurent.goderre@docker.com>
Signed-off-by: Laurent Goderre <laurent.goderre@docker.com>
@LaurentGoderre LaurentGoderre force-pushed the erlang-parser branch 2 times, most recently from a0e73cb to b2c9580 Compare December 5, 2023 20:20
Signed-off-by: Laurent Goderre <laurent.goderre@docker.com>
@spiffcs spiffcs merged commit 3a6b656 into anchore:main Dec 22, 2023
10 checks passed
@LaurentGoderre LaurentGoderre deleted the erlang-parser branch December 22, 2023 15:48
@wagoodman wagoodman added the enhancement New feature or request label Jan 5, 2024
GijsCalis pushed a commit to GijsCalis/syft that referenced this pull request Feb 19, 2024
* ERLang parser support for empty lists
* ERLang add support for single quote strings
* ERLang parser support for comments
---------
Signed-off-by: Laurent Goderre <laurent.goderre@docker.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants