JavaScript comment starting with /*!

前端 未结 3 1745
孤街浪徒
孤街浪徒 2020-12-16 22:55

My editor (Geany) changes the colour of a comment when a comment starts with /*!. What\'s the difference between /* ... */ and /*! ... */

3条回答
  •  悲&欢浪女
    2020-12-16 23:29

    In Javascript, there is none, they're both just inline comments. Presumably geany is doing special coloring for some documentation tool or similar (edit: apparently it's YUI Compressor, see x1a4's answer) that treats /*! comments specially (similar to the way JSDoc treats /** comments specially).

提交回复
热议问题