Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support for multiline comment for languages that use JS regex #82

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

idoo
Copy link
Contributor

@idoo idoo commented Jul 24, 2019

No description provided.

@idoo idoo changed the title feat: support for multiline comment for languages that use default regex feat: support for multiline comment for languages that use JS regex Jul 24, 2019
@Bogdan-Lyashenko
Copy link
Owner

@idoo I tested, it seems like something wrong with parsing. See screenshot from redux-state for codecrumb; pls check what's happing inside parseCodecrumbComment
image

src/server/code-parse/index.js Outdated Show resolved Hide resolved
src/server/code-parse/language/default/codecrumbs.js Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
src/server/code-parse/language/default/codecrumbs.js Outdated Show resolved Hide resolved
@Bogdan-Lyashenko
Copy link
Owner

@idoo multiple crumbs in one file don't work. e.g. add //cc:signin#8 to example-project/src-client/auth/actions.js

return [];
}

const result = fileCode.match(regex) || [];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@idoo match returns more than you need :)
if you run yarn server:two it will look like this
image
while in master it's like this
image
you can see there is an issue with example-project/src-server/app/service/user/session.py

Match returns

[ '#cc:signin#3;updare seesion',
  '',
  'cc:signin#3;updare seesion',
  index: 0,
  input: '#cc:signin#3;updare seesion' ]

there, so after filter by //cc you gonna have double '#cc:signin#3;updare seesion'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants