Skip to content

Add %compound file completion; fix inline directive highlighting#6

Draft
JamesOBrien2 wants to merge 2 commits into
jonathandip:mainfrom
JamesOBrien2:compound-file-completion
Draft

Add %compound file completion; fix inline directive highlighting#6
JamesOBrien2 wants to merge 2 commits into
jonathandip:mainfrom
JamesOBrien2:compound-file-completion

Conversation

@JamesOBrien2

@JamesOBrien2 JamesOBrien2 commented Jun 10, 2026

Copy link
Copy Markdown

Summary

  • %compound now completes *.cmp filenames like %moinp does for .gbw
    (auto-quotes on first space, popup lists scripts from the buffer's directory)
  • Fix: file-form %moinp "x.gbw" / %compound "x.cmp" no longer open the
    methodBlock region, which swallowed all highlighting until the next end.
    The block form (%compound … end) still gets the full region.
  • Added inline-directive examples to test/example.inp

…ing highlighting

ftplugin: %compound now behaves like %moinp - first space auto-inserts
quotes and completes *.cmp files from the buffer directory; closing
quote added after accepting a completion. Added to inline directives
so block-name completion no longer inserts an end skeleton.

syntax: %moinp and the file form of %compound no longer open the
methodBlock region, which previously swallowed all highlighting until
the next column-0 'end'. The inline-script block form (%compound ... end)
keeps the region via a dedicated start pattern.
@JamesOBrien2 JamesOBrien2 changed the title Solvent model highlighting, %geom/%method/%irc params, and %compound file completion Add %compound .cmp file completion; fix inline directives swallowing highlighting Jun 10, 2026
@JamesOBrien2 JamesOBrien2 changed the title Add %compound .cmp file completion; fix inline directives swallowing highlighting Add %compound file completion; fix inline directive highlighting Jun 10, 2026
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.

1 participant