texstudio-org / texstudio

TeXstudio is a fully featured LaTeX editor. Our goal is to make writing LaTeX documents as easy and comfortable as possible.
http://www.texstudio.org/
GNU General Public License v3.0
2.78k stars 344 forks source link

Feature Request: support inheritable keyvals in cwl files #902

Open muzimuzhi opened 4 years ago

muzimuzhi commented 4 years ago

Some latex commands accept 1) every option that another command (defined by another package) accepts and 2) some additional options. For example,

Currently there seems no way to specify this inheritance relationship in cwl files.

Syntax suggestion: Current

#keyvals:<command[,command,...]>
optionA
optionB
#endkeyvals

Extended (#inherit is valid between #keyvals ... #endkeyvals only)

#keyvals:<command[,command,...]>
#inherit:<command[,command,...]>
optionA
optionB
#endkeyvals
mrpiggi commented 4 years ago

Well, I requested that feature more than 3 years ago: https://sourceforge.net/p/texstudio/feature-requests/1104/

muzimuzhi commented 4 years ago

@mrpiggi

Well, I requested that feature more than 3 years ago: https://sourceforge.net/p/texstudio/feature-requests/1104/

Your request is the same as #688 and is supported since 2.12.18. Current issue requires another extension to syntax of cwl files.

mrpiggi commented 4 years ago

Thanks for that hint