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

fixed define command #13

Merged
merged 1 commit into from
May 31, 2023
Merged

fixed define command #13

merged 1 commit into from
May 31, 2023

Conversation

GitMensch
Copy link
Contributor

@GitMensch GitMensch commented Feb 8, 2023

For some unknown reason I've added that wrong, there's no "command" in the define command.

Change details:

  • fixed define command
  • added dont-repeat (commonly only used in define, but not raising an error outside either)
  • tests:
    • renamed "document.gdb" to command".gdb
    • test.gdb: moved entries to hook.gdb / command.gdb

@GitMensch GitMensch mentioned this pull request Feb 8, 2023
* added `dont-repeat` command
* tests:
   * renamed "document.gdb" to command".gdb
   * test.gdb: moved entries to hook.gdb / command.gdb
Copy link
Owner

@pirpyn pirpyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer to have both define.gdb & document.gdb, even if document use a commandname from command.
Also reading the doc, define & define-prefix are different in what they do, so we have to separate them especially since i didn't grasp the differences between them

@@ -214,6 +214,13 @@
"2": { "name": "constant.numeric.count.ignore.gdb" }
}
},
{
"name": "meta.command.dont.gdb",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer to use the full command name for "name" field, to avoid ambiguities so meta.command.dont-repeat.gdb

@@ -774,7 +781,7 @@
},
{
"name": "meta.block.define-command.gdb",
"begin": "^[ \t]*(define(?:-prefix)?\\b[ \t]+comm(?:a(?:n(?:d)?)?)?)[ \t]+([^[ \t]]+)[ \t]*$",
"begin": "^[ \t]*(define(?:-prefix)?)[ \t]+([^[ \t]]+)[ \t]*$",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GitMensch
Copy link
Contributor Author

@pirpyn Would you mind taking this over?

@pirpyn
Copy link
Owner

pirpyn commented May 30, 2023

@pirpyn Would you mind taking this over?

Sure, likely tomorrow

@pirpyn pirpyn merged commit 819a790 into pirpyn:master May 31, 2023
@GitMensch GitMensch deleted the commands branch May 31, 2023 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants