Skip to content

Commit

Permalink
fixes $START$ variable
Browse files Browse the repository at this point in the history
  • Loading branch information
minwe committed Jul 8, 2015
1 parent 2c2aea5 commit bd704b0
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ propTypes: {
### `rp`

```js
$SART$: React.PropTypes.$END$
$START$: React.PropTypes.$END$
```

### `refs`
Expand Down
Binary file modified jetbrains-react.jar
Binary file not shown.
9 changes: 8 additions & 1 deletion jetbrains/templates/ReactJS.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
description="Create a sub component"
toReformat="false"
toShortenFQNames="true">
<variable name="START" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_SCRIPT" value="true" />
<option name="JS_EXPRESSION" value="true" />
Expand All @@ -60,6 +61,7 @@
description="Create a sub component"
toReformat="false"
toShortenFQNames="true">
<variable name="START" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_SCRIPT" value="true" />
<option name="JS_EXPRESSION" value="true" />
Expand Down Expand Up @@ -281,6 +283,7 @@
description="getInitialState"
toReformat="false"
toShortenFQNames="true">
<variable name="START" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_SCRIPT" value="true" />
<option name="JS_EXPRESSION" value="true" />
Expand All @@ -294,6 +297,7 @@
description="getInitialState"
toReformat="false"
toShortenFQNames="true">
<variable name="START" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_SCRIPT" value="true" />
<option name="JS_EXPRESSION" value="true" />
Expand Down Expand Up @@ -333,6 +337,7 @@
description="propTypes"
toReformat="false"
toShortenFQNames="true">
<variable name="START" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_SCRIPT" value="true" />
<option name="JS_EXPRESSION" value="true" />
Expand All @@ -342,10 +347,11 @@
</template>
<template
name="rp"
value="$SART$: React.PropTypes.$END$"
value="$START$: React.PropTypes.$END$"
description="React.PropTypes."
toReformat="false"
toShortenFQNames="true">
<variable name="START" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_SCRIPT" value="true" />
<option name="JS_EXPRESSION" value="true" />
Expand Down Expand Up @@ -424,6 +430,7 @@
description="this.setState"
toReformat="false"
toShortenFQNames="true">
<variable name="START" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_SCRIPT" value="true" />
<option name="JS_EXPRESSION" value="true" />
Expand Down
15 changes: 14 additions & 1 deletion src/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ rccc:
}
});
variables:
- {name: 'START'}

# cdm
cdm:
description: componentDidMount
Expand Down Expand Up @@ -144,6 +147,9 @@ gis:
};
},
variables:
- {name: 'START'}

# isMounted
ism:
tpl: isMounted()
Expand All @@ -160,10 +166,15 @@ pt:
$START$: React.PropTypes.$END$
},
variables:
- {name: 'START'}

# PropType
rp:
description: React.PropTypes.
tpl: "$SART$: React.PropTypes.$END$"
tpl: "$START$: React.PropTypes.$END$"
variables:
- {name: 'START'}

refs:
tpl: this.refs.$END$
Expand Down Expand Up @@ -193,6 +204,8 @@ sst:
this.setState({
$START$: $END$
});
variables:
- {name: 'START'}

#
state:
Expand Down

0 comments on commit bd704b0

Please sign in to comment.