We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59b6637 commit ea528d5Copy full SHA for ea528d5
src/server/code-parse/language/default/codecrumbs.js
@@ -2,7 +2,7 @@ const compact = require('lodash/compact');
2
const { CC_NODE_TYPE, NO_TRAIL_FLOW } = require('../../../shared-constants');
3
4
const CRUMB_REGEX = /cc|codecrumb/;
5
-const DEFAULT_COMMENT_REGEX = /^([^\/\/]*)\/\/(.*)$/;
+const DEFAULT_COMMENT_REGEX = /\/\*[\s\S]*?\*\/|([^:]|^)\/\/.*$/gm;
6
7
const getCommentNodeValue = node => (node.value || '').trim();
8
0 commit comments