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

no way to append own (~/.config/...) Syntax to packaged Syntax #3030

Closed
mc-butler opened this issue Jul 4, 2013 · 3 comments
Closed

no way to append own (~/.config/...) Syntax to packaged Syntax #3030

mc-butler opened this issue Jul 4, 2013 · 3 comments
Labels
area: mcedit mcedit, the built-in text editor prio: low Minor problem or easily worked around ver: 4.8.8 Reproducible in version 4.8.8

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/3030
Reporter yury_t

There's no (easily discernible) way to include one's own Syntax rules in addition to the package's ('system') Syntax rules.

First thing, personal and package's Syntax are mutually exclusive: on Linux, either ~/.config/mc/mcedit/Syntax or /usr/share/mc/syntax/Syntax works, but not both.

Second thing, seems Syntax file cannot be included from another Syntax file. Trying to put into personal Syntax this...

file .\* refer to package's Syntax
include /usr/share/mc/syntax/Syntax

...effects in error on the first 'file' line in package's Syntax.

Can anything be done?

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Jul 4, 2013 at 8:34 UTC (comment 1)

  • Status changed from new to closed
  • Resolution set to duplicate
  • Milestone Future Releases deleted

Duplicate of #1984.

@mc-butler
Copy link
Author

Changed by yury_t on Jul 4, 2013 at 9:32 UTC (comment 2)

Well, I can't make you do anything, but that's not a duplicate of a feature request (3 years old, anyway). That's config files not working properly, detracting from product's user value.

@mc-butler
Copy link
Author

Changed by gavenkoa (@gavenkoa) on Dec 21, 2014 at 15:28 UTC (comment 3)

  • Blocked by set to #1677
  • Type changed from defect to enhancement

Seems that include or source or import keyword help.

Another way - use /xxx.d/ directory and load files on name order (NN-xxxx patterns) see #1677. This look more promising.

But before do this it is necessary define read priority order or conflict resolution strategy (in documentation). See arguments in #3191.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: mcedit mcedit, the built-in text editor prio: low Minor problem or easily worked around ver: 4.8.8 Reproducible in version 4.8.8
Development

No branches or pull requests

1 participant