Gherkin plugin for Japanese doesn't detect keywords when there is a space

Answered

Two pictures probably speak a thousand words

As you can see the one without the space between the keyword and the clause gets IDE detection but not the one with the space.

However, based on japanese gherkin samples I've seen on the internet, most Japanese coders put in the space to mark the keyword.

Is there a way to tweak the IDE detection so that it works with and without the space?

I'm using the latest IntelliJ Ultimate (2019.2) on Kubuntu 18.04.

0
4 comments

Can you provide a code sample where the issue is being reproduced? You can share via github, or upload it to our FTP server: ftp://ftp.intellij.net/.uploads/ (anonymous login, .uploads directory has no permissions to list/download files, only for upload, so that other users will not be able to download your project). 

0
Avatar
Permanently deleted user

Here's a link to a Japanese Gherkin tutorial, the sample covers most of the keywords.

https://blog.eiel.info/blog/2013/02/12/gherkin/

It's about 2 PgDn presses down, in a code block.

0

I just reproduced that: 

./Cucumber/src/test/resources/test.feature

 # language: ja
  @good
  シナリオ: ブログが書ける
  ブログが書ける場合はやる気と時間があるのです。

    # the word with space is not detected as keyword. But the same word without space is detected.
  前提 ネタがある
  前提ネタがある

Please report a bug at https://youtrack.jetbrains.com/issues/IDEA

0

Please sign in to leave a comment.