Skip to content

Copy the syntax-highlight directory under share/cyrptol for installation#1464

Closed
yav wants to merge 1 commit intomasterfrom
vim-syntax-highlight
Closed

Copy the syntax-highlight directory under share/cyrptol for installation#1464
yav wants to merge 1 commit intomasterfrom
vim-syntax-highlight

Conversation

@yav
Copy link
Member

@yav yav commented Oct 26, 2022

Add syntax highlighting to installation script

Copy link
Contributor

@RyanGlScott RyanGlScott left a comment

Choose a reason for hiding this comment

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

I've looked at a bindist for this PR and can confirm that the syntax highlighting files are included. I have one comment about the location of these files, but this otherwise LGTM.

cp docs/*pdf $doc
mkdir -p $lib
cp -r lib/* $lib
cp -r syntax-highlight $lib
Copy link
Contributor

Choose a reason for hiding this comment

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

This will put the syntax-highlighting–related files among the .cry files, which is perhaps not the most intuitive place to put them. I wonder if it would make more sense to have a separate syntax-highlight/ subdirectory for this? Something like this, perhaps:

syntax_highlight=dist/share/syntax-highlight
...
mkdir -p $syntax_highlight
cp -r syntax-highlight $syntax_highlight

Copy link
Member Author

Choose a reason for hiding this comment

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

Hm, I was hoping that since I don't have a slash after syntax-highlight it will copy the directory rather than the files in it... Did it not do that?

Copy link
Contributor

Choose a reason for hiding this comment

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

It does copy the directory. What I am referring to is that you have a situation like this:

$ ls cryptol-2.13.0.99-ubuntu-22.04-x86_64/share/cryptol/
Array.cry         Cryptol.cry       Float.cry         SuiteB.cry        
Cryptol/          CryptolTC.z3      PrimeEC.cry       syntax-highlight/

Perhaps this is what you intended, but I'm not sure that I would have thought to look here for the syntax-highlight directory. I'll let you make the call.

@yav
Copy link
Member Author

yav commented Nov 16, 2022

@RyanGlScott what do we want to do with this PR? Should we instead modify the scripts to get syntax-highlighting from the other repo?

@RyanGlScott
Copy link
Contributor

Should we instead modify the scripts to get syntax-highlighting from the other repo?

Yes, that sounds reasonable to me.

@yav yav closed this Nov 17, 2022
@yav yav deleted the vim-syntax-highlight branch December 9, 2025 18:55
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.

2 participants