galCohen88 / pycharm-jenkinsfile

PyCharm Jenkinsfile highlighting
39 stars 13 forks source link

/* in a string is considered as commenting #5

Open foutoucour opened 3 years ago

foutoucour commented 3 years ago

Thank you for this plugin.

I have an issue with it tho. With the following code, the plugin considers the code as commented:

env.fullpathpdbs = bat("""
                                    max-pipeline compress pdb-files ^
                                      --version ${conf.ART_VERSION} ^
                                      --branch ${env.BRANCH_NAME} ^
                                      --year ${MAX_VERSION} ^
                                      --build ${conf.BUILD_NUMBER} ^
                                      --component ${conf.PROJECT_NAME} ^
                                      ${env.publicComponentPDBDir}/*.pdb  // <- it doesn't like the /* :)
                                """)

Thank you again for your work

galCohen88 commented 3 years ago

@foutoucour its because the closing is wrong. closing should be /* */ not /* /*

https://groovy-lang.org/syntax.html#:~:text=A%20multiline%20comment%20starts%20with,or%20even%20inside%20a%20statement.