mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
reference_contributor.md: Cleanup
This commit is contained in:
parent
0c877b7ce9
commit
affd74da22
@ -107,7 +107,7 @@ public class SimpleElementFactory {
|
|||||||
## Update Grammar and Regenerate the Parser
|
## Update Grammar and Regenerate the Parser
|
||||||
|
|
||||||
Now make corresponding changes to the <path>Simple.bnf</path> grammar file by replacing the `property` definition with the lines below.
|
Now make corresponding changes to the <path>Simple.bnf</path> grammar file by replacing the `property` definition with the lines below.
|
||||||
Don't forget to regenerate the parser after updating the file!
|
Remember to regenerate the parser after updating the file!
|
||||||
Right-click on the <path>Simple.bnf</path> file and select **Generate Parser Code**.
|
Right-click on the <path>Simple.bnf</path> file and select **Generate Parser Code**.
|
||||||
|
|
||||||
```bnf
|
```bnf
|
||||||
@ -144,8 +144,9 @@ The `SimpleReferenceContributor` implementation is registered using the `com.int
|
|||||||
|
|
||||||
```xml
|
```xml
|
||||||
<extensions defaultExtensionNs="com.intellij">
|
<extensions defaultExtensionNs="com.intellij">
|
||||||
<psi.referenceContributor language="JAVA"
|
<psi.referenceContributor
|
||||||
implementation="org.intellij.sdk.language.SimpleReferenceContributor"/>
|
language="JAVA"
|
||||||
|
implementation="org.intellij.sdk.language.SimpleReferenceContributor"/>
|
||||||
</extensions>
|
</extensions>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user