Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-25096

Code block macro recognizes apostrophe as the start of comment in Scala mode

      Hello there,

      We've found out that Confluence code block macro recognizes apostrophe as the start of comment in Scala mode.

      In the following statement,

      SQL("select * from `user_status` where `id` = {id}").on('id -> id).as(UserStatus.simple.singleOpt)
      

      'id is recognized as the start of comment and all the following codes are colored as comment block.

      Please refer to the attached screenshot for details.

      We consider this to be a bug within code block macro, and hope it will be fixed as soon as possible.

        1. syntax-scala.png
          57 kB
          G2G JPSupport

            [CONFSERVER-25096] Code block macro recognizes apostrophe as the start of comment in Scala mode

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2882151 ] New: CONFSERVER Bug Workflow v4 [ 2977952 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2783787 ] New: JAC Bug Workflow v3 [ 2882151 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2712502 ] New: JAC Bug Workflow v2 [ 2783787 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2372238 ] New: JAC Bug Workflow [ 2712502 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2256130 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2372238 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2207569 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2256130 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2184749 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2207569 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1935129 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2184749 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1734597 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1935129 ]
            Katherine Yabut made changes -
            Workflow Original: CONF Bug Subtask WF (TEMP) [ 1693270 ] New: Confluence Workflow - Public Facing - Restricted v3 [ 1734597 ]

              Unassigned Unassigned
              ee846b91f0c0 G2G JPSupport
              Affected customers:
              0 This affects my team
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: