Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Issues 1,2 and 3 are resolved. Added a new example .acc file.

  • Loading branch information...
commit 60074f6860b7b79bda01e5b24591af933faea375 1 parent 26c9456
Rodrigo Lopes rodvlopes authored
16 syntax-highlight/highlight_example.acc
View
@@ -0,0 +1,16 @@
+Como um usuário do Pyccuracy
+Eu quero testar a ação de verificar se uma checkbox está checada
+Para garantir que o Pyccuracy funciona em outras línguas
+
+Cenário 1 - Verificando que as checkbox estão checadas
+Dado que
+ Eu navego para "checkbox_tests.htm"
+Quando
+ Eu marco a checkbox "chkUnchecked"
+ E eu marco a checkbox "chkUnchecked2"
+Então
+ Eu vejo que a checkbox "chkUnchecked" está marcada
+ E eu vejo que a checkbox "chkUnchecked2" está marcada
+
+#comentário :)
+
20 syntax-highlight/pyccuracy.lang
View
@@ -23,6 +23,7 @@
<metadata>
<property name="mimetypes">text/x-pyccuracy</property>
<property name="globs">*.acc</property>
+ <property name="line-comment-start">#</property>
</metadata>
<styles>
@@ -41,16 +42,21 @@
<context id="line-comment" style-ref="comment" end-at-line-end="true">
<start>#</start>
<include>
- <context ref="def:in-comment"/>
+ <context ref="def:in-comment"/>
</include>
</context>
<context id="cenario" style-ref="boolean" end-at-line-end="true">
<start>Cenário</start>
<include>
- <context ref="def:in-comment"/>
+ <context ref="def:in-comment"/>
</include>
</context>
+
+ <context id="string" style-ref="string" end-at-line-end="true">
+ <start>["']</start>
+ <end>\%{0@start}</end>
+ </context>
<context id="keywords" style-ref="keyword">
<keyword>Dado que</keyword>
@@ -61,14 +67,20 @@
<context id="functions" style-ref="function">
<keyword>Test</keyword>
<keyword>Eu</keyword>
+ <keyword>E eu</keyword>
+ <keyword>Como um</keyword>
+ <keyword>Para</keyword>
+ <keyword>Para que</keyword>
+ <keyword>Eu quero</keyword>
</context>
<context id="pyccuracy">
<include>
<context ref="line-comment"/>
<context ref="keywords"/>
- <context ref="functions"/>
- <context ref="cenario"/>
+ <context ref="functions"/>
+ <context ref="cenario"/>
+ <context ref="string"/>
</include>
</context>
Please sign in to comment.
Something went wrong with that request. Please try again.