No, there is no BNF grammar. Parsing is done by regular expression.
You will find some information here
http://plantuml.sourceforge.net/developpers.html about checking syntax of a text file.
The -syntax flag may be usefull for developping integration with IntelliJ, and if you wish, we could also provide an API to allow syntax checking from Java code.